1
0
mirror of https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git synced 2025-07-26 08:01:26 +00:00
This commit is contained in:
2021-01-30 01:07:08 -07:00
parent 4578ad43f1
commit 38853582d1
2 changed files with 19 additions and 1 deletions

9
bot.py
View File

@@ -46,6 +46,14 @@ def help(update, context):
)
def license(update, context):
"""Return bots license agreement"""
update.message.reply_text(
text=Symbol.license, parse_mode=telegram.ParseMode.MARKDOWN
)
def symbol_detect(update, context):
"""
Runs on any message that doesn't have a command and searches for symbols, then returns the prices of any symbols found.
@@ -307,6 +315,7 @@ def main():
# on different commands - answer in Telegram
dp.add_handler(CommandHandler("start", start))
dp.add_handler(CommandHandler("help", help))
dp.add_handler(CommandHandler("license", license))
dp.add_handler(CommandHandler("dividend", dividend))
dp.add_handler(CommandHandler("div", dividend))
dp.add_handler(CommandHandler("news", news))