Created
April 2, 2018 12:18
-
-
Save b0g3r/5ade2504c68a4270e9fb6ee09c50317a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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