Skip to content Skip to sidebar Skip to footer

When The Command / Start Is Sent To The Bot, The Bot Should Delete The Stickers Sent To The Group; But The Bot Does Not Work

I am built a telegram bot with the Python-Telegram-Bot framework.I added it to a group and admin the bot in the group. bot codes: from telegram.ext import Updater, MessageHandler,

Solution 1:

First, make sure it's supergroup, not normal group

Your bot need Delete Message permission, and Privacy Mode should be disabled.

Bots can't get message list, they can only receive that when someone send it, so you need to log Enable/Disable state to your own database, and delete Sticker when received new message.

Post a Comment for "When The Command / Start Is Sent To The Bot, The Bot Should Delete The Stickers Sent To The Group; But The Bot Does Not Work"