Create a Telegram application with Telepot

Telepot installation

To install Telepot on any Acme Systems Linux board type:

# apt-get update
# apt-get install python-pip
# pip install telepot

Write a very basic Bot

Create your Bot using and insert the Token generated by BotFather on this code:

Now send a message via Telegram.

Basic inline example

Enable your bot to receive the inline events using these commands with BotFather:

  • /setinline - change inline settings
  • /setinlinefeedback - change inline feedback settings

Launch this program using your Token and open a chat with another user.

then type @YournameBot

More examples