You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m experiencing an issue with node-telegram-bot-api when using bot.banChatMember alongside the revoke_messages option. According to the Telegram Bot API documentation, setting revoke_messages: true should delete the user’s recent messages (from the past 48 hours) after they are banned in a supergroup.
However, no messages are being removed at all.
For example, the following code results in a successful ban but does not delete the user’s recent messages:
The bot has all the necessary admin rights (including the ability to delete messages), and the chat is confirmed to be a supergroup.
Could you please provide guidance or confirm whether this is a known issue? Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
iservy
changed the title
bot.banChatMember(chatId, userId, { revoke_messages: true });
bot.banChatMember(chatId, userId, { revoke_messages: true }) => no messages are getting deleted.
Dec 17, 2024
Below is the corrected and clarified version:
Hi,
I’m experiencing an issue with
node-telegram-bot-api
when usingbot.banChatMember
alongside therevoke_messages
option. According to the Telegram Bot API documentation, settingrevoke_messages: true
should delete the user’s recent messages (from the past 48 hours) after they are banned in a supergroup.However, no messages are being removed at all.
For example, the following code results in a successful ban but does not delete the user’s recent messages:
The bot has all the necessary admin rights (including the ability to delete messages), and the chat is confirmed to be a supergroup.
Could you please provide guidance or confirm whether this is a known issue? Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: