From da97606bb401200bb14ab77624b5259e55928af4 Mon Sep 17 00:00:00 2001 From: profitroll Date: Tue, 30 Aug 2022 14:01:12 +0200 Subject: [PATCH] Commented on_raw_update event --- poster.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/poster.py b/poster.py index 4de306d..b88a891 100644 --- a/poster.py +++ b/poster.py @@ -385,14 +385,16 @@ def callback_query_unblock(app, clb): # type: ignore clb.answer(text=locale("sub_unblock", "callback", locale=user_locale).format(fullclb[2]), show_alert=True) #=========================================================================================================================================== -@app.on_raw_update() -def fwd_got(app, update, users, chats): - if isinstance(update, UpdateChannelMessageForwards): - logWrite(f'Forward count increased to {update["forwards"]} on post {update["id"]} in channel {update["channel_id"]}') - logWrite(str(users), debug=True) - logWrite(str(chats), debug=True) - # else: - # logWrite(f"Got raw update of type {type(update)} with contents {update}", debug=True) +# Work in progress +# Handle new forwards +# @app.on_raw_update() +# def fwd_got(app, update, users, chats): +# if isinstance(update, UpdateChannelMessageForwards): +# logWrite(f'Forward count increased to {update["forwards"]} on post {update["id"]} in channel {update["channel_id"]}') +# logWrite(str(users), debug=True) +# logWrite(str(chats), debug=True) +# # else: +# # logWrite(f"Got raw update of type {type(update)} with contents {update}", debug=True) for entry in configGet("time", "posting"): schedule.every().day.at(entry).do(send_content)