Skip to content

EverythingSuckz/PaLM-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PaLM Telegram Bot

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.

Demo

A working demo can be found at @NotAIChatBot.

Requirements

Telegram API ID and Hash

Get your API ID and Hash from my.telegram.org.

Telegram Bot API Token

Create a bot and get the bot token from @BotFather.

Python 3.8+

Install Python 3.8 or higher from here

PostgreSQL Database

Install PostgreSQL from here or use a managed database service like ElephantSQL

PaLM API Key

Get your PaLM API key from here

Environment Variables

Hosting

Self Hosting

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 bot

Based on pyrogram.

Give a ⭐ if you like this project!