bard-telegram-bot
Introduction
See full article on my Medium
Steps to make the bot work
- Create your own telegram bot with Botfather
- Grab the BOT API key
- Create the lambda funtion and public it to via API gateway. You can deploy this source code as well.
- Grab the Google Bard session key, you need to login with your google account, go to [GoogleBard] (bard.goole.com). Under your Chrome browser developer tool, open the Application and check the cookie, find the key __Secure-1PSID
- Link the bot and your lambda via the URL webhook configure
https://api.telegram.org/bot{my_bot_token}/setWebhook?url={url_to_send_updates_to}