srijan-deepsource / python-telegram-bot

Missing module/function docstring PY-D0003
Documentation
Minor
3 years ago3 years old
Docstring missing for 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
Docstring missing for 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
Docstring missing for 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    )
Docstring missing for 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)
Docstring missing for 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():