Skip to content

Instantly share code, notes, and snippets.

@b0g3r
Created April 2, 2018 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save b0g3r/5ade2504c68a4270e9fb6ee09c50317a to your computer and use it in GitHub Desktop.
Save b0g3r/5ade2504c68a4270e9fb6ee09c50317a to your computer and use it in GitHub Desktop.
import telebot
token = '...'
bot = telebot.TeleBot(token)
def all_messages():
return True
@bot.message_handler(func=lambda msg: msg.chat.id == 1111)
def greeting(message):
bot.send_message(message.chat.id, 'Hi!')
bot.polling()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment