Bug report
I use gramJS version 2.26.21 to collect several messages with polls from a public chat.
channels.GetMessages returns object with messages prop which is an array of Message objects, each having a media property.
Expected behavior
media field is expected to contain messageMediaPoll
Bugged behavior
media contains messageMediaUnsupported
Bug specifics
The bug is specific to gramJS implementation: the same messages collected with Telethon Python library contain expected messageMediaPoll structures.
The bug is specific to the number of options within a poll. 10-option poll gets collected as expected. 11-option poll fails with gram-js.
Wild guess
- maybe gram-js uses some outdated Layer, that does not support more than 10 options within a poll;
- there is the poll-answers-max client config option that maybe has to be configured to 12 instead of 10.
Bug report
I use gramJS version 2.26.21 to collect several messages with polls from a public chat.
channels.GetMessagesreturns object withmessagesprop which is an array ofMessageobjects, each having amediaproperty.Expected behavior
mediafield is expected to containmessageMediaPollBugged behavior
mediacontainsmessageMediaUnsupportedBug specifics
The bug is specific to
gramJSimplementation: the same messages collected with Telethon Python library contain expectedmessageMediaPollstructures.The bug is specific to the number of options within a poll. 10-option poll gets collected as expected. 11-option poll fails with gram-js.
Wild guess