mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-18 20:21:35 +00:00
Fix some TG messages do not arrive
This commit is contained in:
parent
e6600063ab
commit
8ca497f7b4
@ -35,13 +35,13 @@ class Telegram():
|
|||||||
message_url = f'https://api.telegram.org/bot{bot_token}/sendMessage?chat_id={chat_id}&text={text}'
|
message_url = f'https://api.telegram.org/bot{bot_token}/sendMessage?chat_id={chat_id}&text={text}'
|
||||||
|
|
||||||
# telegram messaging is atm inserted dangerously in the logics module
|
# telegram messaging is atm inserted dangerously in the logics module
|
||||||
# if it fails, it should just keep going
|
# if it fails, it should keep trying
|
||||||
try:
|
while True:
|
||||||
self.session.get(message_url).json()
|
try:
|
||||||
except:
|
self.session.get(message_url).json()
|
||||||
pass
|
return
|
||||||
|
except:
|
||||||
return
|
pass
|
||||||
|
|
||||||
def welcome(self, user):
|
def welcome(self, user):
|
||||||
lang = user.profile.telegram_lang_code
|
lang = user.profile.telegram_lang_code
|
||||||
|
Loading…
Reference in New Issue
Block a user