linkchanbot

Telegram bot frontend proxy link substituter
Log | Files | Refs | README | LICENSE

commit b2522448baa3dcfaa4730fed3e080480c6f97ac5
parent 1f84b07c3eee390a6bcd0bd97f79780e65b726e8
Author: Byron Torres <b@torresjrjr.com>
Date:   Sat, 27 Mar 2021 21:00:07 +0000

Fix: ignore non-message updates

Diffstat:
Mlinkchanbot | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/linkchanbot b/linkchanbot @@ -471,6 +471,10 @@ def cb_link_handler(upd, ctx): Handles messages with links (see main > MessageHandler). Replies with `TEMPLATE` with new links. """ + if not upd.message: + # Will have been logged as [ukn] in @logger + return + links = [] # Telegram returns message metadata called 'entities'