1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +00:00

Piccoli miglioramenti al redditbot

This commit is contained in:
Steffo 2018-09-08 02:12:05 +02:00
parent e0428bb87b
commit baf77c19da

View file

@ -75,9 +75,9 @@ def process():
while True: while True:
try: try:
telegram_bot.send_message(config["Telegram"]["main_group"], telegram_bot.send_message(config["Telegram"]["main_group"],
f'Nuovo post su r/RoyalGames:\n' f' Nuovo post su r/RoyalGames:\n'
f'<a href="https://reddit.com{submission.permalink}">{submission.title}</a>\n' f'<a href="https://reddit.com{submission.permalink}">{submission.title}</a>\n'
f'da u/{submission.author}', f'da <b>u/{submission.author}</b>',
parse_mode="HTML", disable_notification=True) parse_mode="HTML", disable_notification=True)
except telegram.error.TimedOut: except telegram.error.TimedOut:
time.sleep(1) time.sleep(1)