Working with isin, symbol and company name now
This commit is contained in:
@@ -276,14 +276,12 @@ def send_share_update(message):
|
||||
"""
|
||||
user_id = int(message.from_user.id)
|
||||
|
||||
#Get Information for user with this id
|
||||
bot.send_message(chat_id=user_id, text='Send symbol of share:')
|
||||
#str_share_price = shares.wait_for_share.main_loop(bot)
|
||||
bot.send_message(chat_id=user_id, text='Send Symbol/ISIN of share or name of company:')
|
||||
bot.register_next_step_handler(message, send_share_price)
|
||||
|
||||
def send_share_price(message):
|
||||
str_share_price = share_fetcher.get_share_price(str(message.text))
|
||||
bot.reply_to(message, str_share_price) # add dollar symbol etc.
|
||||
str_share_price = share_fetcher.get_share_information(str(message.text))
|
||||
bot.reply_to(message, str_share_price)
|
||||
|
||||
|
||||
@bot.message_handler(commands=['allnews', 'Allnews']) # /allnews -> get all news
|
||||
@@ -297,7 +295,7 @@ def send_all_news(message):
|
||||
|
||||
:rtype: none
|
||||
"""
|
||||
|
||||
|
||||
user_id = int(message.from_user.id)
|
||||
keywords = api_handler.get_user_keywords(user_id) # get keywords of user
|
||||
|
||||
|
||||
Reference in New Issue
Block a user