Skip to content

A telegram bot to receive texts, images or pdfs and answer questions accordingly using LLMs.

Notifications You must be signed in to change notification settings

ihumaunkabir/tg-finbot

Repository files navigation

tg-finbot

A telegram bot to receive texts, images or pdfs and answer questions accordingly using LLMs.

Installation

Install dependencies through pip

pip install -r requirements.txt

Configuring a Telegram bot

On Telegram hit to @BotFather initiate your own bot and obtain BOT_TOKEN, BOT_USER.

Example config/config.py with necessary keys and values.

from typing import Final

BOT_TOKEN: Final = 'yourbottoken'
BOT_USER: Final = '@username'
APIURL: Final = 'llmapiendpoint'
VLLM: Final = 'mistral-nemo'
BEARER: Final = "Bearer bearertokenhere"

Backend

Run the backend of bot.

python main.py

Output

Bot started...
Bot polling...

Docker

Build and run the application on docker containers.

docker compose up --build

Example Usage

Once your bot is running as well as your API is serving properly. Start interacting with your bot.

chatimage

License

MIT

About

A telegram bot to receive texts, images or pdfs and answer questions accordingly using LLMs.

Resources

Stars

Watchers

Forks