A telegram bot that interacts with Google's PaLM Chat API and can be hosted on serverless functions.
Looking for serverless verson based on aiogram?
Check out this branch.
A working demo can be found at @NotAIChatBot.
Get your API ID and Hash from my.telegram.org.
Create a bot and get the bot token from @BotFather.
Install Python 3.8 or higher from here
Install PostgreSQL from here or use a managed database service like ElephantSQL
Get your PaLM API key from here
API_ID- Your API IDAPI_HASH- Your API HashBOT_TOKEN- Your bot tokenPALM_API_KEY- Your PaLM API keyDB_USER- Database usernameDB_PASSWORD- Database passwordDB_HOST- Database hostDB_NAME- Database name
git clone -b pyrogram https://github.com/EverythingSuckz/PaLM-Bot
cd PaLM-Bot
python3 -m venv venv
source venv/bin/activate # Linux
.\venv\Scripts\activate # Windows
pip install -r requirements.txt
python -m botBased on pyrogram.
Give a ⭐ if you like this project!