Answers for "how to get chat first name in telebot"

1

how to get chat first name in telebot

@bot.message_handler(func=lambda message: True)
def send_message(message:str):

user_first_name = str(message.chat.first_name)
bot.reply_to(message, 'Hi ' + user_frist_name)

# Result: Hi Saeed
Posted by: Guest on December-25-2020

Code answers related to "how to get chat first name in telebot"

Python Answers by Framework

Browse Popular Code Answers by Language