rubenlagus / TelegramApi

Java library to create Telegram Clients
MIT License
296 stars 108 forks source link

How to handle incoming 'messageMediaPoll ' messages? #100

Open scozic opened 2 years ago

scozic commented 2 years ago

Hi I am writing a telegram client that listen to incoming messages but I noticed some relevant messages carried in 'Polls' could not be read.

After a few debugging, it appears when such message is received, the incoming 'MessageMedia' part of the TLMessage being deserialized is mapped to messageMediaUnsupported#9f84f49e According to documentation it means it is 'not supported by current client version'.

Indeed, I could see no implementation for messageMediaPoll message media in org.telegram.api.message.media package, and I could add it. But, how to have the server consider my client as valid for receiving such media?