Skip to content

Allen233443/Google-Bard-Telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Google-Bard-Telegram-bot

A simple implementation of Google bard in Telegram

Just require your telegram bot token and Google bard API key

Go to @Botfather on telegram to Get your bot token, after getting just replace it with "YOUR_BOT_TOKEN".

To get Your Bard API:

  1. Visit https://bard.google.com/
  2. F12 for console
  3. Session: Application → Cookies → Copy the value of __Secure-1PSID cookie.

Note that while I referred to __Secure-1PSID value as an API key for convenience, it is not an officially provided API key. Cookie value subject to frequent changes. Verify the value again if an error occurs. Most errors occur when an invalid cookie value is entered.


After getting the API KEY replace it with 'YOUR_BARD_API'

The bot is now free to use.

Libraries Used are

  • pip install bardapi
  • pip install python-telegram-bot==12.8
  • About

    A simple implementation of Google bard in Telegram

    Topics

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published

    Languages