Skip to content

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 reply and tag @Summarize300Bot to the message which has video pass URL

Maintenance

Requires yandex cookie refresh every month or so.

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

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages