Skip to content

Commit 8947703

Browse files
committed
update comments on example
1 parent fa6b0ab commit 8947703

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/conversationbot.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,21 @@
66
"""
77
This Bot uses the Updater class to handle the bot.
88
9-
First, a few handler functions are defined. Then, those functions are passed to
9+
First, a few callback functions are defined. Then, those functions are passed to
1010
the Dispatcher and registered at their respective places.
1111
Then, the bot is started and runs until we press Ctrl-C on the command line.
1212
1313
Usage:
14-
Basic Echobot example, repeats messages.
14+
Example of a bot-user conversation using ConversationHandler.
15+
Send /start to initiate the conversation.
1516
Press Ctrl-C on the command line or send a signal to the process to stop the
1617
bot.
1718
"""
1819

1920
from telegram import (ReplyKeyboardMarkup)
2021
from telegram.ext import (Updater, CommandHandler, MessageHandler, Filters, RegexHandler,
2122
ConversationHandler)
23+
2224
import logging
2325

2426
# Enable logging

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy