Skip to content
Permalink
Browse files

Slight improvement on ChatAction's docs

  • Loading branch information
Lonami committed Nov 10, 2019
1 parent 38b929b commit 57dd0827f4812abddd441671c0670666acad796b
Showing with 13 additions and 2 deletions.
  1. +2 −1 readthedocs/quick-references/events-reference.rst
  2. +11 −1 telethon/events/chataction.py
@@ -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>`.
@@ -6,7 +6,17 @@
@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):

0 comments on commit 57dd082

Please sign in to comment.
You can’t perform that action at this time.