Skip to content

MessageMediaUnsupported for poll with 11 options #815

@sergiks

Description

@sergiks

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

  1. maybe gram-js uses some outdated Layer, that does not support more than 10 options within a poll;
  2. there is the poll-answers-max client config option that maybe has to be configured to 12 instead of 10.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions