mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-31 10:19:48 +03:00
fixed
This commit is contained in:
parent
aae93c155b
commit
3cf26e47fa
|
@ -30,6 +30,7 @@ class ChatAction(EventBuilder):
|
|||
if event.user_joined:
|
||||
await event.reply('Welcome to the group!')
|
||||
"""
|
||||
|
||||
@classmethod
|
||||
def build(cls, update, others=None, self_id=None):
|
||||
# Rely on specific pin updates for unpins, but otherwise ignore them
|
||||
|
@ -116,8 +117,7 @@ class ChatAction(EventBuilder):
|
|||
pin_ids=[msg.reply_to_msg_id])
|
||||
elif isinstance(action, types.MessageActionGameScore):
|
||||
return cls.Event(msg,
|
||||
game_id=action.game_id,
|
||||
score=action.score)
|
||||
new_score=action.score)
|
||||
|
||||
class Event(EventCommon):
|
||||
"""
|
||||
|
@ -157,9 +157,10 @@ class ChatAction(EventBuilder):
|
|||
unpin (`bool`):
|
||||
`True` if the existing pin gets unpinned.
|
||||
"""
|
||||
|
||||
def __init__(self, where, new_photo=None,
|
||||
added_by=None, kicked_by=None, created=None,
|
||||
users=None, new_title=None, pin_ids=None, pin=None):
|
||||
users=None, new_title=None, pin_ids=None, pin=None, new_score=None):
|
||||
if isinstance(where, types.MessageService):
|
||||
self.action_message = where
|
||||
where = where.peer_id
|
||||
|
@ -209,6 +210,7 @@ class ChatAction(EventBuilder):
|
|||
self._users = None
|
||||
self._input_users = None
|
||||
self.new_title = new_title
|
||||
self.new_score = new_score
|
||||
self.unpin = not pin
|
||||
|
||||
def _set_client(self, client):
|
||||
|
|
Loading…
Reference in New Issue
Block a user