我在电报中有一个超级组和一个bot,该机器人是组的管理员。当新用户加入或左组时,聊天中会出现服务消息(带有灰色背景),例如
Username join to a chat
Username is join to a chat by invite link
Username is left the chat
是否可以从与Bot API聊天中捕获和删除此类服务消息?预先感谢!
ps。我正在使用https://github.com/php-telegram-bot/core
您需要将Request::sendMessage()
添加到每个更新事件
ps。已经有@antiservicemessagebot可以做到这一点。