Closed afshar-mohammad closed 7 years ago
They arrive in normal messages but with Media content
Actually I assume that there should be a function with an update as argument which returns TLAbsMessageMedia
when we call update.getMessage()
, so that I can handle the media content, but there is none.
TLAbsMessage
cannot be converted to for example TLMessageMediaPhoto
, so basically I can't handle photo messages in onTLUpdateNewMessageCustom(TLUpdateNewMessage update)
because update.getMessage()
is a TLAbsMessage
. Then where do media messages go!?
oh I got it!! update.getMessage().getMedia()
does it! thanks!
I'm really wondering how Telegram employees not get confused with it!! They've made the worst API I've ever used so far in terms of structure and order!
hi pazis, Have you find the way of downloading file?
I've implemented many methods in
DefaultUpdatesHandler
and I recieve none of the messages with a file attached. How can I recieve them?