~torresjrjr/linkchanbot

59f5f792df1988ac206c194850250a41f829c063 — Byron Torres 1 year, 10 months ago 3a0b831
Fix chat.full_name AttributeError
1 files changed, 4 insertions(+), 1 deletions(-)

M linkchanbot
M linkchanbot => linkchanbot +4 -1
@@ 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   = '#'