Slight improvement on ChatAction's docs

This commit is contained in:
Lonami Exo 2019-11-10 14:56:00 +01:00
parent 38b929b973
commit 57dd0827f4
2 changed files with 13 additions and 2 deletions

View File

@ -90,7 +90,8 @@ Full documentation for the `MessageRead
ChatAction
==========
Occurs whenever a user joins or leaves a chat, or a message is pinned.
Occurs on certain chat actions, such as chat title changes,
user join or leaves, pinned messages, photo changes, etc.
Full documentation for the `ChatAction
<telethon.events.chataction.ChatAction>`.

View File

@ -6,7 +6,17 @@ from ..tl import types, functions
@name_inner_event
class ChatAction(EventBuilder):
"""
Occurs whenever a user joins or leaves a chat, or a message is pinned.
Occurs on certain chat actions:
* Whenever a new chat is created.
* Whenever a chat's title or photo is changed or removed.
* Whenever a new message is pinned.
* Whenever a user joins or is added to the group.
* Whenever a user is removed or leaves a group if it has
less than 50 members or the removed user was a bot.
Note that "chat" refers to "small group, megagroup and broadcast
channel", whereas "group" refers to "small group and megagroup" only.
"""
@classmethod
def build(cls, update, others=None, self_id=None):