Skip to content

[FEATURE] Add _id_attrs #1708

@Bibo-Joshi

Description

@Bibo-Joshi

Is your feature request related to a problem? Please describe.

InlineKeyboardMarkup and InlineKeyboardButton objects are currently not really testable for equality because the _id_attrs are not set. We should add all attributes of IKB to the _id_attr and inline_keyboard for IKM.

Additional context

We already did that for MessageEntity iirc. Probably should go through the lib and do that for all the telegram objects.

Current workaround

Use __dict__ for everything

Metadata

Metadata

Assignees

Labels

No labels
No labels

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions