Skip to content

Support for CommandHandler in Channels #831

@peterstory

Description

@peterstory

Currently, CommandHandler only works in Messages. However, it would be very useful to support commands in channels as well. It should be easy to make this change: simply checking Update.effective_message instead of Update.message.

if (isinstance(update, Update)
and (update.message or update.edited_message and self.allow_edited)):
message = update.message or update.edited_message
if message.text:

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