ba0f3 / telebot.nim

Async Telegram Bot API Client implement in @Nim-Lang
MIT License
165 stars 24 forks source link

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

Closed jumatberkah closed 5 years ago

jumatberkah commented 5 years ago

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

ba0f3 commented 5 years ago

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

jumatberkah commented 5 years ago

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