-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Open
Labels
ℹ️ good-first-issueinformation: good-first-issueinformation: good-first-issue🔌 enhancementpr description: enhancementpr description: enhancement🔗 pythonrelated technology: pythonrelated technology: python
Description
What kind of feature are you missing? Where do you notice a shortcoming of PTB?
I would like to have a shortcut method to delete a business message.
await update.business_message.delete()
This doesn't work and raises message to be deleted not found error.
Describe the solution you'd like
Currently .delete() method doesn't support business_connection_id
like other shortcut methods support it. (like .pin(), .unpin(), .reply_text(), .reply_photo() and other methods)
Describe alternatives you've considered
This can be working alternative to the issue.
await app.bot.delete_business_messages(
business_connection_id=update.business_message.business_connection_id,
message_ids=[update.business_message.id]
)
Additional context
No response
Metadata
Metadata
Assignees
Labels
ℹ️ good-first-issueinformation: good-first-issueinformation: good-first-issue🔌 enhancementpr description: enhancementpr description: enhancement🔗 pythonrelated technology: pythonrelated technology: python