~torresjrjr/linkchanbot

0551f36bdea7415c2f1869477d40c3d9bbafec19 — Byron Torres 2 years ago 9b4432d
Fix further None occurences
1 files changed, 6 insertions(+), 3 deletions(-)

M linkchanbot
M linkchanbot => linkchanbot +6 -3
@@ 238,12 238,15 @@ def mk_status(upd, utype, dl='::', text=None):
    if upd.effective_user:
        user_id   = upd.effective_user.id
        user_name = upd.effective_user.name
    elif upd.channel_post:
    elif upd.channel_post and upd.channel_post.from_user:
        user_id   = upd.channel_post.from_user.id
        user_name = upd.channel_post.from_user.name
    elif upd.poll:
        user_id   = '<Poll>'
        user_name = '<Poll>'
        user_id   = '<poll>'
        user_name = '<poll>'
    else:
        user_id   = '<unknown>'
        user_name = '<unknown>'

    chat = upd.effective_chat
    if chat: