Your personal Telegram bot that uses ChatGPT on Deta Space. Trivial modification of https://github.com/xeust/telemage. Send a prompt via Telegram, and TeleGPT will use OpenAI's Chat Completion to generate a response.
- Install the TeleGPT app on Deta Space.
- In Telegram, open search, search for Botfather and add it as a contact. Talk to BotFather and create a Telegram bot (using the
/newbot
command). BotFather will ask for a bot name and username, then it will give you a bot key. - Paste the bot key from BotFather into the
TELEGRAM
configuration variable on Space (to get to Configuration, click the...
, then 'Settings' then 'Configuration' from the App's Tile on your Canvas). - Get an API key from Open AI. Input the Open AI API key into the
OPEN_AI
configuration variable on Space. - Open the TeleGPT App from your Canvas to setup the Webhook integration with Telegram.
You are now ready to use your Bot.
Add your bot (via the Bot's username from step 1) as a contact in Telegram. Start messaging it to interact with it.
Visit https://github.com/vargonis/telegpt for the source.