mirror of
https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git
synced 2025-06-16 15:06:53 +00:00
Merge branch 'master' of gitlab.com:simple-stock-bots/simple-telegram-stock-bot
This commit is contained in:
commit
19e3813e57
3
bot.py
3
bot.py
@ -156,9 +156,12 @@ def symbol_detect_image(update: Update, context: CallbackContext):
|
|||||||
Makes image captions into text then passes the `update` and `context`
|
Makes image captions into text then passes the `update` and `context`
|
||||||
to symbol detect so that it can reply cashtags in image captions.
|
to symbol detect so that it can reply cashtags in image captions.
|
||||||
"""
|
"""
|
||||||
|
try:
|
||||||
if update.message.caption:
|
if update.message.caption:
|
||||||
update.message.text = update.message.caption
|
update.message.text = update.message.caption
|
||||||
symbol_detect(update, context)
|
symbol_detect(update, context)
|
||||||
|
except AttributeError:
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
def symbol_detect(update: Update, context: CallbackContext):
|
def symbol_detect(update: Update, context: CallbackContext):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user