Skip to content

[BUG] Message.photo is set to an empty list when not provided #2606

Closed
@Poolitzer

Description

@Poolitzer

Steps to reproduce

  1. Generate a Message object without photo set.

  2. Check the photo parameter

Expected behaviour

.photo should be None

Actual behaviour

.photo is an empty list

Wrong line:

self.photo = photo or []

Metadata

Metadata

Assignees

Labels

⚙️ bot-apiaffected functionality: bot-api

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions