Skip to content

Refactor how InputMedia* subclasses handle inits #2573

@Bibo-Joshi

Description

@Bibo-Joshi

Currently all the subclasses handle the init completely on their own, while it would make more sense to move all attributes shared between the subclasses to InputMedia, i.e. call super().__init__ like we do for InlineQueryResult*. This includes the attributes caption_entities, parse_mode, type, media & caption

See https://t.me/c/1494805131/16382 + replies for discussion.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions