An user -> a user

This commit is contained in:
Lonami Exo
2018-09-22 19:18:42 +02:00
parent d5d3733fd4
commit ec0aa65fe1
11 changed files with 19 additions and 19 deletions

View File

@@ -37,7 +37,7 @@ class ChatAction(EventBuilder):
added_by=True,
users=msg.from_id)
elif isinstance(action, types.MessageActionChatAddUser):
# If an user adds itself, it means they joined
# If a user adds itself, it means they joined
added_by = ([msg.from_id] == action.users) or msg.from_id
event = cls.Event(msg,
added_by=added_by,

View File

@@ -191,7 +191,7 @@ class NewMessage(EventBuilder):
self.__dict__['_init'] = False
if not message.out and isinstance(message.to_id, types.PeerUser):
# Incoming message (e.g. from a bot) has to_id=us, and
# from_id=bot (the actual "chat" from an user's perspective).
# from_id=bot (the actual "chat" from a user's perspective).
chat_peer = types.PeerUser(message.from_id)
else:
chat_peer = message.to_id

View File

@@ -7,7 +7,7 @@ from ..tl import types
@name_inner_event
class UserUpdate(EventBuilder):
"""
Represents an user update (gone online, offline, joined Telegram).
Represents a user update (gone online, offline, joined Telegram).
"""
@classmethod
def build(cls, update):
@@ -22,7 +22,7 @@ class UserUpdate(EventBuilder):
class Event(EventCommon):
"""
Represents the event of an user status update (last seen, joined).
Represents the event of a user status update (last seen, joined).
Members:
online (`bool`, optional):