Skip to content

Commit

Permalink
Update _reaction_type_custom_emoji.py
Browse files Browse the repository at this point in the history
  • Loading branch information
z44d authored Aug 5, 2024
1 parent 104ace3 commit 1a02e6a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tgram/types/_reaction_type_custom_emoji.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@ class ReactionTypeCustomEmoji(Type_):

def __init__(
self,
type: "str" = None,
custom_emoji_id: "str" = None,
me: "tgram.TgBot" = None,
json: "dict" = None,
):
super().__init__(me=me, json=json)
self.type = type
self.type = "custom_emoji"
self.custom_emoji_id = custom_emoji_id

@staticmethod
Expand All @@ -39,7 +38,6 @@ def _parse(
ReactionTypeCustomEmoji(
me=me,
json=d,
type=d.get("type"),
custom_emoji_id=d.get("custom_emoji_id"),
)
if d and (force or me and __class__.__name__ not in me._custom_types)
Expand Down

0 comments on commit 1a02e6a

Please sign in to comment.