Skip to content

AlynxZhou/telebot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Telegram Bot Starter Kit.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published