Commented on_raw_update event
This commit is contained in:
parent
91a1d7e349
commit
da97606bb4
18
poster.py
18
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)
|
clb.answer(text=locale("sub_unblock", "callback", locale=user_locale).format(fullclb[2]), show_alert=True)
|
||||||
#===========================================================================================================================================
|
#===========================================================================================================================================
|
||||||
|
|
||||||
@app.on_raw_update()
|
# Work in progress
|
||||||
def fwd_got(app, update, users, chats):
|
# Handle new forwards
|
||||||
if isinstance(update, UpdateChannelMessageForwards):
|
# @app.on_raw_update()
|
||||||
logWrite(f'Forward count increased to {update["forwards"]} on post {update["id"]} in channel {update["channel_id"]}')
|
# def fwd_got(app, update, users, chats):
|
||||||
logWrite(str(users), debug=True)
|
# if isinstance(update, UpdateChannelMessageForwards):
|
||||||
logWrite(str(chats), debug=True)
|
# logWrite(f'Forward count increased to {update["forwards"]} on post {update["id"]} in channel {update["channel_id"]}')
|
||||||
# else:
|
# logWrite(str(users), debug=True)
|
||||||
# logWrite(f"Got raw update of type {type(update)} with contents {update}", 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"):
|
for entry in configGet("time", "posting"):
|
||||||
schedule.every().day.at(entry).do(send_content)
|
schedule.every().day.at(entry).do(send_content)
|
||||||
|
Reference in New Issue
Block a user