ba0f3 / telebot.nim

Async Telegram Bot API Client implement in @Nim-Lang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Command(s) with '@' bot username does not ignore other bot username.

jumatberkah opened this issue · comments

My bot username is @XCosmosBot. When i typed command with other bot username, my bot still respond. eg: "/start@XXXBot" it should only respond to XXXBot, but my bot still respond too. Second, command must be in the first order of a message instead of catching command in every message.

gambar

first, your bot will see every message (including other bots' commands) if it is group admin
second, all commands are sent from telegram server as entites, the library doesnt parse commands itself. ref #39

first, your bot will see every message (including other bots' commands) if it is group admin
second, all commands are sent from telegram server as entites, the library doesnt parse commands itself. ref #39

Hi there, please see this https://github.com/python-telegram-bot/python-telegram-bot/blob/984bea16d197df950c7a752a3888932b0ecb86ad/telegram/ext/commandhandler.py#L169