We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be508f1 commit 6696a15Copy full SHA for 6696a15
examples/echobot2.py
@@ -29,15 +29,15 @@
29
# Define a few command handlers. These usually take the two arguments bot and
30
# update. Error handlers also receive the raised TelegramError object in error.
31
def start(bot, update):
32
- bot.sendMessage(update.message.chat_id, text='Hi!')
+ update.message.reply_text('Hi!')
33
34
35
def help(bot, update):
36
- bot.sendMessage(update.message.chat_id, text='Help!')
+ update.message.reply_text('Help!')
37
38
39
def echo(bot, update):
40
- bot.sendMessage(update.message.chat_id, text=update.message.text)
+ update.message.reply_text(update.message.text)
41
42
43
def error(bot, update, error):
0 commit comments