Tell me, please, how can I call the / start command on a button? Those. the user enters the channel, sees the '/' or ('?') button, presses it, the '/ start Help' button appears, and when you click on it, the message is sent to the '/ start' bot (/ help). This is done for the @BreeZe bot.

import config import telebot from telebot import types bot = telebot.TeleBot(config.token) @bot.message_handler(commands=['start', 'help']) def handle_start_help(message): start = types.ReplyKeyboardRemove('/start') bot.send_message(message.chat.id, 'Welcome', reply_markup=start) 

Like this

Even so, with the button

 mark = types.ReplyKeyboardRemove('/') 

When you click on the input line, '/' appears, can you make hints here with available commands? / start, / stop?

And another question, what event should handle the "Exit" button?

  • It is not clear what needs to be done. Implement commands for the bot in the channel or what? - Anatol
  • As in the screenshot, you start typing / start, a button appears above - / start Help-- I understand this inline? - ss_beer
  • one
    No, this is a list of the usual commands that are given via @BotFather - Anatol

1 answer 1

 @bot.message_handler(commands=['start']) def handle_start(message): user_markup = telebot.types.ReplyKeyboardMarkup(resize_keyboard=True) user_markup.row('1⃣ Начать 1⃣ ') bot.send_message(message.from_user.id, 'Привет', reply_markup=user_markup)