telegram-bot-api
telegram-bot-api copied to clipboard
Proposal: `is_service_message`
We have over 20+ service message in Message object, isn't good idea to append is_service_message to the object? Similar to: is_topic_message.
Service message is just the name for messages that are sent by Telegram on behalf of users or chats and can't be sent directly. There is no need to differentiate them for processing purposes.
There's a situation that i need to use copyMessage on users message, but as the service message cannot be copied i'll get error. So what should i do? to get over it, i have to store all service message's key in my code base to determine is this service message or a normal message.
How would an additional flag help, in this scenario? You would have to save whether a message can be copied or not regardless
@foremtehan I would use the list of selected message types that should be copied, or just ignore the error. The actual condition is much harder then just "service messages can't be copied".