chatgpt telegram bot serverless
1.0.0
This a Telegram bot that lets you chat with ChatGPT. This bot is created using the brand new ChatGPT API. The Telegram bot is deployed in completely serverless in AWS Lambda. No need to setup a local server or do login in the browser.
](/img/session_token.png)
S3.
](/img/s3_browser.png)
](/img/create_bucket_button.png)
](/img/create_bucket_config.png)
.chalice/config.json and stablish the configurations:TELEGRAM_TOKEN with your Telegram token.OPENAI_API_KEY with the value of your Open AI API Token.VOICE_MESSAGES_BUCKET with the bucket name you created previously.python3 -m venv .venv.source .venv/bin/activate.pip install -r requirements.txt.chalice deploy.curl --request POST --url https://api.telegram.org/bot<YOUR_TELEGRAM_TOKEN>/setWebhook --header 'content-type: application/json' --data '{"url": "YOUR_FUNCTION_URL"}'Great! Everything is setup :) Now go to Telegram and find your bot name and use ChatGPT from there!