Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If user delete's their bot command message, the bot auto-deletes its own message. #51

Open
PrimalPimmy opened this issue Nov 1, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request telegram bot

Comments

@PrimalPimmy
Copy link
Member

New feature

Say, if the user delete's their message which called the bot to do some function, then the bot will also delete it's own message.

Directions/Approach

We'll put a condition, that if the user delete's their message, we check for the bot's MessageID for the text it displayed for the user , and then delete it.

First-time Contributors

If it is the first time that you contribute to the bot, follow these steps:

Write a comment in this issue thread to let other possible contributors know that you are working on this bug. For eg : Hey all, I would like to work on this issue., follow Contributing to the bot 🔥✨ and feel free to ask anything related to this issue ✌️

@PrimalPimmy PrimalPimmy added the enhancement New feature or request label Nov 1, 2020
@PrimalPimmy
Copy link
Member Author

I'd like to work on this issue.

@PrimalPimmy
Copy link
Member Author

How would I be able to get the list of previous command messages using the API? Then we can check if that previous command message returns nil, then we can have the bot delete it's own message that it responded to that specific delete command. Can't seem to find anything in GoDocs of telegram-go like message history or get message list or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request telegram bot
Projects
None yet
Development

No branches or pull requests

2 participants