Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.04 KB

README.md

File metadata and controls

37 lines (25 loc) · 1.04 KB

TeleBot

A telegram bot program. Powered by Python.

Usage:

First clone it via git.

$ git clone https://github.com/AlynxZhou/telebot.git

You need to install python3, pip3 and use pip to install telepot, if you forget to install telepot, the program will install by itself. Such as:

# apt-get install python3 python3-pip
# pip3 install telepot

Now you have to sign up a new bot from the BotFather, then put your token and your username into a config file:

$ cd /Where/you/cloned/TeleBot/
$ cp example_bot.json YOURBOTNAME.json
$ ${EDITOR} YOURBOTNAME.json

After "token": was your bot token, after "admin": was your username (nikename, no '@'!), and if you want, get Tuling Chat Api Key, add it after "tuling_api_key": . Don't forget json format.

Finally run:

$ python3 ./bot.py YOURBOTNAME.json

Do not kill it. You could use GNU Screen.

I will complete it gradually. Thanks.