Skip to content

Commit

Permalink
Update tele.py
Browse files Browse the repository at this point in the history
Fix telegram notification not shown properly
  • Loading branch information
wahyubiman committed Jul 4, 2022
1 parent 1c18247 commit 18abfef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/notification/tele.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ async def send_notif(signals):
await bot.start(bot_token=os.getenv('TELE_BOT_TOKEN'))
entity = await bot.get_entity(TG_CHANNEL_NAME)
msg += msg_header
if signals[0] != 0:
if len(signals[0]) != 0:
msg += f"""MSB High Break :
"""
for signal in signals[0]:
msg += "-> {} \n".format(signal)
if signals[0] != 0:
if len(signals[1]) != 0:
msg += f"""MSB Low Break :
"""
for signal in signals[1]:
Expand Down

0 comments on commit 18abfef

Please sign in to comment.