Skip to content

[BUG] Docs confusingly suggest that message_reaction and message_reaction_count are included in webhook updates by default #4116

@mbanerjeepalmer

Description

@mbanerjeepalmer

Steps to Reproduce

  1. Read docs which say that for allowed_updates you should 'Specify an empty sequence to receive all updates except telegram.Update.chat_member (default).'
  2. Leave allowed_updates empty (i.e. do not specify parameter at all).

Expected behaviour

Given the python-telegram-bot docs, the user expects the webhook to deliver message_reaction and message_reaction_count.

Actual behaviour

The webhook is not set up to deliver message reactions. This is because Telegram's default behaviour is actually the following:

Specify an empty list to receive all update types except chat_member, message_reaction, and message_reaction_count (default). If not specified, the previous setting will be used.

Source: https://core.telegram.org/bots/api#setwebhook

Operating System

Ubuntu 22.04.3

Version of Python, python-telegram-bot & dependencies

python-telegram-bot 20.7
Bot API 6.9
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]

Relevant log output

No response

Additional Context

The wording change needs to be made here: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/telegram/_bot.py#L4260

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions