Skip to content

This is a telegram bot that runs on the Coze API

License

vt72983/Telegram_Bot_on_Coze_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Telegram_Bot_on_Coze_API

Introduction:

This code is a Telegram bot that uses the API of the Coze service to process and respond to user messages. The bot saves the history of each user's conversations and uses this information to generate responses. Before starting work Before running this code, you will need: Python 3.7 or higher Install the necessary dependencies using pip:

pip install requests
pip install pyTelegramBotAPI

Are needed:

  1. Telegram Bot Token

  2. The Coze Token

  3. ID Coze bot

Tokens must be specified in the TELEGRAM_TOKEN and COZE_TOKEN variables, respectively. Launch To run this code, just run the python command with the file name:

python bot.py

Releases

No releases published

Packages

No packages published

Languages