1
0
mirror of https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git synced 2025-07-26 08:01:26 +00:00

code cleanup

This commit is contained in:
2021-01-31 17:14:15 -07:00
parent f02ab0d14b
commit ba1f43b593
2 changed files with 8 additions and 10 deletions

12
bot.py
View File

@@ -39,25 +39,19 @@ print("Bot Online")
def start(update, context):
"""Send a message when the command /start is issued."""
update.message.reply_text(
text=Symbol.help_text, parse_mode=telegram.ParseMode.MARKDOWN
)
update.message.reply_text(text=s.help_text, parse_mode=telegram.ParseMode.MARKDOWN)
def help(update, context):
"""Send link to docs when the command /help is issued."""
update.message.reply_text(
text=Symbol.help_text, parse_mode=telegram.ParseMode.MARKDOWN
)
update.message.reply_text(text=s.help_text, parse_mode=telegram.ParseMode.MARKDOWN)
def license(update, context):
"""Return bots license agreement"""
update.message.reply_text(
text=Symbol.license, parse_mode=telegram.ParseMode.MARKDOWN
)
update.message.reply_text(text=s.license, parse_mode=telegram.ParseMode.MARKDOWN)
def donate(update, context):