TelegramBotAPI | Type-safe library for work with Telegram Bot API | Bot library
kandi X-RAY | TelegramBotAPI Summary
kandi X-RAY | TelegramBotAPI Summary
Hello! This is a set of libraries for working with Telegram Bot API.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of TelegramBotAPI
TelegramBotAPI Key Features
TelegramBotAPI Examples and Code Snippets
Community Discussions
Trending Discussions on TelegramBotAPI
QUESTION
I have a bot that publish some messages in a supergroup. It's an admin and it has can_delete_messages, but it can't delete old messages (more than 48h ago). Code, id_message and id_group are correct: it can delete recent messages. The error is: 400 Bad Request: message can't be deleted.
Recap of infos:
1. Bot is admin of supergroup and it has can_delete_messages permission.
2. Code, id_messages and id_group are right
3. Bot can delete recent messages (less than 48h ago)
4. Messages were sent by bot
5. Error is: 400 Bad Request: message can't be deleted
I use this simple code with TelegramBotApi library for Java:
ANSWER
Answered 2019-May-05 at 11:28https://core.telegram.org/bots/api#deletemessage
A message can only be deleted if it was sent less than 48 hours ago.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install TelegramBotAPI
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page