Skip to content

s0rl0v/summarize-300-tg-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This is a simple Telegram bot that wraps 300 YandexGPT summarizer into Telegram interface.

Technology stack

Python, python-telegram-bot.

Usage

Add @Summarize300Bot to a group and pass URL as an argument to any command, e.g.:

/go@Summarize300Bot https://www.youtube.com/watch?v=ycfPF1gkNpE

Or self-host it independently.

Development

Install poetry and Python 3.12. Then fill .env config inside the project directory:

TELEGRAM_BOT_TOKEN='***' // get from BotFather
YANDEX_OAUTH='***' // Click API link on https://300.ya.ru/ webpage and select "Generate token"
YANDEX_COOKIE='***' // Navigate to https://300.ya.ru/ and enable developer console, check in Network tab requests to /generation or /sharing_url endpoints on processing some article or video - you will find the value in 'Cookie' Header.
DEVELOPER_CHAT_ID='***' // This is your chat id, or whatever person you would like to receive exceptions

Then execute on the host machine:

# poetry install
# poetry run python main.py

Now you can query the bot.

About

A telegram bot interface for Yandex Summarize GPT 300 API https://300.ya.ru/

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors