linkchanbot

Telegram bot frontend proxy link substituter
git clone https://git.torresjrjr.com/linkchanbot.git
Log | Files | Refs | README | LICENSE

commit 59f5f792df1988ac206c194850250a41f829c063
parent 3a0b83153e4f8edb5e0bf31b99b523c8b9359f07
Author: Byron Torres <b@torresjrjr.com>
Date:   Tue, 11 Jan 2022 00:45:36 +0000

Fix chat.full_name AttributeError

Diffstat:
Mlinkchanbot | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/linkchanbot b/linkchanbot @@ -234,7 +234,10 @@ def mk_status(upd, utype, dl='::', text=None): chat = upd.effective_chat if chat: chat_id = chat.id - chat_name = chat.link or chat.title or chat.full_name + try: + chat_name = chat.link or chat.title or chat.full_name + except AttributeError: + chat_name = None chat_name = chat_name.replace('https://t.me/', '@') else: chat_id = '#'