Answer the question
In order to leave comments, you need to log in
How to create a team through!?
I always see commands in bots not through "/" but through "!"
How can this be implemented and is there such a function in Telebot at all?
Answer the question
In order to leave comments, you need to log in
We go into the folder of our project in the pyTelegramBotAPI package
and find - https://github.com/eternnoir/pyTelegramBotAPI/blob... - such a file
where there is a method
def is_command(text):
"""
Checks if `text` is a command. Telegram chat commands start with the '/' character.
:param text: Text to check.
:return: True if `text` is a command, else False.
"""
if (text is None): return None
return text.startswith('/')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question