Google Bard is a Chat Based AI Tool from Google, This is a Python Telegram Bot script leveraging the aiogram library to interact with Google Bard through cookie value. This repository contains the core script that facilitates the communication between the user and Bard,
- 🔄 Asynchronous Communication: Leverage the power of async for seamless interactions
- ⚙️ Error Handling: Robust error handling for a smoother user experience
- 🍪 Accepts text prompts and generates text using the Google Bard through cookie value
- 📲 Provides generated text as a response in Telegram
- ✍️ Supports the
/start
command for welcoming users 👋 and the/bard
command for generating text
- Python 3.7 or higher
- Libraries:
aiogram,
requests
- A Telegram bot token.
__Secure-1PSID
and__Secure-1PSIDTS
from bard.google.com.
-
Secure-1PSID Key:
- Visit the Google Bard.
- Open Inspect or
CTLR+Shift+I
- Go to the : Application → Cookies → Copy the value of
__Secure-1PSID cookie
. - Warning Do not expose the
Secure-1PSID
-
Secure-1PSIDTS Key:
- Visit the Google Bard.
- Open Inspect or
CTLR+Shift+I
- Go to the : Application → Cookies → Copy the value of
__Secure-1PSIDTS cookie
.
- Install the required Python packages:
- This is a framework for Telegram Bot API. You can install it using pip:
pip install aiogram==2.6
- This is a popular Python HTTP library. You can install it with pip:
pip install requests
-
Update the
bard.py
file with your [Telegram bot token],V = Secure-1PSID cookie key
, andW = Secure-1PSIDTS cookie key
-
Run the Google Bard bot:
python bard.py
- Start a chat with your bot on Telegram.
- Ask question to Bard:
/bard <query>
.
- Name: Bisnu Ray
- Telegram: @SmartBisnuBio
Feel free to reach out if you have any questions or feedback.