Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Latest commit

 

History

History
49 lines (39 loc) · 1.72 KB

README.md

File metadata and controls

49 lines (39 loc) · 1.72 KB

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!