Answer the question
In order to leave comments, you need to log in
Need to know user id via reply pytelegrambotapi?
Need to know user id via reply pytelegrambotapi
@bot.message_handler(commands=['getid'])
def command_getid(m):
cid = m.chat.id
bot.send_message(cid, str(m.chat.id) + " " + m.from_user.username)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question