start
33
34# Define a few command handlers. These usually take the two arguments update and
35# context. Error handlers also receive the raised TelegramError object in error.
36def start(update: Update, _: CallbackContext) -> None: 37 update.message.reply_text('Hi! Use /set <seconds> to set a timer')
38
39
main
150 update.message.reply_text("Use /quiz, /poll or /preview to test this bot.")
151
152
153def main() -> None:154 # Create the Updater and pass it your bot's token.
155 updater = Updater("TOKEN")
156 dispatcher = updater.dispatcher
custom_choice
86 return TYPING_REPLY
87
88
89def custom_choice(update: Update, _: CallbackContext) -> int: 90 update.message.reply_text(
91 'Alright, please send me the category first, for example "Most impressive skill"'
92 )
main
128 return ConversationHandler.END
129
130
131def main() -> None:132 # Create the Updater and pass it your bot's token.
133 persistence = PicklePersistence(filename='conversationbot')
134 updater = Updater("TOKEN", persistence=persistence)
facts_to_str
46markup = ReplyKeyboardMarkup(reply_keyboard, one_time_keyboard=True)
47
48
49def facts_to_str(user_data: Dict[str, str]) -> str: 50 facts = []
51
52 for key, value in user_data.items():
The module/function docstring is missing.
If you want to ignore this, you can configure this in the .deepsource.toml
file. Please refer to docs for available options.