File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -583,10 +583,10 @@ def parse_messages(
583583 )
584584
585585 if m .text :
586- m .text .init (m .client , m .entities or [])
586+ m .text .init (m ._client , m .entities or [])
587587
588588 if m .caption :
589- m .caption .init (m .client , m .caption_entities or [])
589+ m .caption .init (m ._client , m .caption_entities or [])
590590
591591 if message .reply_to_msg_id and replies :
592592 while True :
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ def __init__(
260260 reply_markup = None ,
261261 ):
262262 self .message_id = message_id # int
263- self .client = client
263+ self ._client = client
264264 self .date = date # int
265265 self .chat = chat # Chat
266266 self .from_user = from_user # flags.0?User
@@ -373,7 +373,7 @@ def reply_text(self,
373373 if reply_to_message_id is None and quote :
374374 reply_to_message_id = self .message_id
375375
376- return self .client .send_message (
376+ return self ._client .send_message (
377377 chat_id = self .chat .id ,
378378 text = text ,
379379 parse_mode = parse_mode ,
@@ -418,7 +418,7 @@ def forward(self,
418418 Raises:
419419 :class:`Error <pyrogram.Error>`
420420 """
421- return self .client .forward_messages (
421+ return self ._client .forward_messages (
422422 chat_id = chat_id ,
423423 from_chat_id = self .chat .id ,
424424 message_ids = self .message_id ,
@@ -453,7 +453,7 @@ def delete(self, revoke: bool = True):
453453 Raises:
454454 :class:`Error <pyrogram.Error>`
455455 """
456- self .client .delete_messages (
456+ self ._client .delete_messages (
457457 chat_id = self .chat .id ,
458458 message_ids = self .message_id ,
459459 revoke = revoke
You can’t perform that action at this time.
0 commit comments