Answer the question
In order to leave comments, you need to log in
Hello, how can I send a text with a picture together when greeting a bot?
def start_bot():
bot = telebot.TeleBot(settings.bot_token)
# Command start
@bot.message_handler(commands=['start'])
def handler_start(message):
chat_id = message.chat.id
func.first_join(user_id=chat_id, name=message.from_user.username, code=message.text[6:])
bot.send_message(chat_id,
'Приветствуем! Дорогой друг!\n' {}'.format(message.from_user.first_name,
chat_id,),
reply_markup=menu.main_menu)
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