Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
If you want to display this command in the command menu, then no way. Also, it will not be possible to make a command without a slash a link. If a command without a slash is strongly needed (it's not very clear why), you can process a text message and check that the text begins or is equal to the command name. Python example:
def text_handler(bot, update):
if update.message.text.startswith("hello"):
update.reply_text("Hello User!")
The question was created, apparently, without marking which bible TS uses to work with api. Here it needs to be modified, according to the standard, they only process all slash commands. When parsing json from webhook requests, the bot receives ALL messages in general, do whatever you want.
for pytelegrambotapi
@bot.message_handler(regexp='zapis')
def zapis(message):
msg = bot.send_message(message.chat.id, message.chat.id)
pass
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question