Exemple #1
0
def on_command_help(message):
	bot.send_chat_action(message.chat.id, 'typing')

	bot.send_message(
		message.chat.id, 
		logic.get_help_message (), 
		parse_mode="Markdown") 
def on_command_start(message):
    bot.send_chat_action(message.chat.id, 'typing')
    bot.send_message(message.chat.id,
                     logic.get_welcome_message(bot.get_me()),
                     parse_mode="Markdown")
    bot.send_message(message.chat.id,
                     logic.get_help_message(),
                     parse_mode="Markdown")
    logic.register_account(message.from_user.id)
Exemple #3
0
def on_command_help(message):
    bot.send_chat_action(message.chat.id, 'typing')

    bot.send_message(message.chat.id,
                     logic.get_about_this(config.VERSION),
                     parse_mode="Markdown")

    bot.send_message(message.chat.id,
                     logic.get_help_message(),
                     parse_mode="Markdown")
Exemple #4
0
def on_fallback(message):
    bot.send_chat_action(message.chat.id, 'typing')
    sleep(1)

    response = logic.get_fallback_message(message.text)
    bot.reply_to(message, response)

    bot.send_message(message.chat.id,
                     logic.get_help_message(),
                     parse_mode="Markdown")