Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/EverythingSuckz/PaLM-Bot
A small bot that interacts with Google's PaLM Chat API.
https://github.com/EverythingSuckz/PaLM-Bot
ai aiogram-bot free-hosting hacktoberfest mtproto palm-api pyrogram pyrogram-bot serverless
Last synced: 3 months ago
JSON representation
A small bot that interacts with Google's PaLM Chat API.
- Host: GitHub
- URL: https://github.com/EverythingSuckz/PaLM-Bot
- Owner: EverythingSuckz
- Archived: true
- Created: 2023-06-29T20:39:38.000Z (over 1 year ago)
- Default Branch: pyrogram
- Last Pushed: 2023-10-02T16:43:30.000Z (about 1 year ago)
- Last Synced: 2024-05-29T05:10:17.343Z (6 months ago)
- Topics: ai, aiogram-bot, free-hosting, hacktoberfest, mtproto, palm-api, pyrogram, pyrogram-bot, serverless
- Language: Python
- Homepage:
- Size: 53.7 KB
- Stars: 15
- Watchers: 4
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/EverythingSuckz/PaLM-Bot/tree/aiogram) branch.# Demo
A working demo can be found at [@NotAIChatBot](https://telegram.dog/NotAIChatBot).# Requirements
#### Telegram API ID and Hash
Get your API ID and Hash from [my.telegram.org](https://my.telegram.org).
#### Telegram Bot API Token
Create a bot and get the bot token from [@BotFather](https://telegram.dog/BotFather).
#### Python 3.8+
Install Python 3.8 or higher from [here](https://www.python.org/downloads/)
#### PostgreSQL Database
Install PostgreSQL from [here](https://www.postgresql.org/download/) or use a managed database service like [ElephantSQL](https://www.elephantsql.com/)
#### PaLM API Key
Get your PaLM API key from [here](https://makersuite.google.com/)# Environment Variables
- `API_ID` - Your [API ID](#telegram-api-id-and-hash)
- `API_HASH` - Your [API Hash](#telegram-api-id-and-hash)
- `BOT_TOKEN` - Your [bot token](#telegram-bot-api-token)
- `PALM_API_KEY` - Your [PaLM API key](#palm-api-key)
- `DB_USER` - [Database](#postgresql-database) username
- `DB_PASSWORD` - [Database](#postgresql-database) password
- `DB_HOST` - [Database](#postgresql-database) host
- `DB_NAME` - [Database](#postgresql-database) name# Hosting
# Self Hosting```bash
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](https://github.com/pyrogram/pyrogram)._
**Give a ⭐ if you like this project!**