Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- kom = "SELECT user_id, nickname FROM ch_{}".format(chat_id)
- c.execute(kom)
- max = c.fetchall()
- for human in max:
- bot.get_chat_member(message.chat.id, human[0])
- usern = '{} {}'.format(message.from_user.first_name, message.from_user.last_name)
- if usern[-4:] == 'None':
- usern = usern[:-5]
- if usern == 'None':
- usern = '{}'.format(message.from_user.username)
- req = "UPDATE ch_{} SET nickname = '{}' WHERE user_id = '{}'".format(chat_id, usern, human[0])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement