Skip to content

New channel message logic im UpdatesHandlerBase #35

Description

@pmouraguedes

Hi,

I'm trying to receive new messages sent to a channel in my plugin.
Each time a new message is sent I see that UpdatesHandlerBase.onTLUpdateChannelNewMessage is invoked. However, onTLUpdateChannelNewMessageCustom is never called because user from message is missing (no from id) on channel messages:

if (isUserFromMessageMissing(update.getMessage(), false)) { ... } else { onTLUpdateChannelNewMessageCustom(update); }
Also this method is private and UpdatesHandlerBase.processUpdate is final, which means I cannot change this behavior.

I would appreciate to hear your recommendations about how to workaround this issue in order to be able to have onTLUpdateChannelNewMessageCustom called on the consumer side.

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions