mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-10-31 07:57:38 +03:00 
			
		
		
		
	Remove the "private" _total parameter
This commit is contained in:
		
							parent
							
								
									bf71e49fcc
								
							
						
					
					
						commit
						d508e58d49
					
				|  | @ -189,7 +189,8 @@ class ChatMethods(UserMethods): | |||
| 
 | ||||
|     def iter_participants( | ||||
|             self, entity, limit=None, *, search='', | ||||
|             filter=None, aggressive=False, _total=None): | ||||
|             filter=None, aggressive=False | ||||
|     ): | ||||
|         """ | ||||
|         Iterator over the participants belonging to the specified chat. | ||||
| 
 | ||||
|  | @ -227,9 +228,6 @@ class ChatMethods(UserMethods): | |||
| 
 | ||||
|                 This has no effect if a ``filter`` is given. | ||||
| 
 | ||||
|             _total (`list`, optional): | ||||
|                 A single-item list to pass the total parameter by reference. | ||||
| 
 | ||||
|         Yields: | ||||
|             The :tl:`User` objects returned by :tl:`GetParticipantsRequest` | ||||
|             with an additional ``.participant`` attribute which is the | ||||
|  |  | |||
|  | @ -97,8 +97,8 @@ class DialogMethods(UserMethods): | |||
| 
 | ||||
|     def iter_dialogs( | ||||
|             self, limit=None, *, offset_date=None, offset_id=0, | ||||
|             offset_peer=types.InputPeerEmpty(), ignore_migrated=False, | ||||
|             _total=None): | ||||
|             offset_peer=types.InputPeerEmpty(), ignore_migrated=False | ||||
|     ): | ||||
|         """ | ||||
|         Returns an iterator over the dialogs, yielding 'limit' at most. | ||||
|         Dialogs are the open "chats" or conversations with other people, | ||||
|  | @ -127,9 +127,6 @@ class DialogMethods(UserMethods): | |||
|                 dialogs are returned, but setting this to ``True`` will hide | ||||
|                 them in the same way official applications do. | ||||
| 
 | ||||
|             _total (`list`, optional): | ||||
|                 A single-item list to pass the total parameter by reference. | ||||
| 
 | ||||
|         Yields: | ||||
|             Instances of `telethon.tl.custom.dialog.Dialog`. | ||||
|         """ | ||||
|  |  | |||
|  | @ -283,8 +283,8 @@ class MessageMethods(UploadMethods, ButtonMethods, MessageParseMethods): | |||
|     def iter_messages( | ||||
|             self, entity, limit=None, *, offset_date=None, offset_id=0, | ||||
|             max_id=0, min_id=0, add_offset=0, search=None, filter=None, | ||||
|             from_user=None, wait_time=None, ids=None, reverse=False, | ||||
|             _total=None): | ||||
|             from_user=None, wait_time=None, ids=None, reverse=False | ||||
|     ): | ||||
|         """ | ||||
|         Iterator over the message history for the specified entity. | ||||
|         If either `search`, `filter` or `from_user` are provided, | ||||
|  | @ -377,9 +377,6 @@ class MessageMethods(UploadMethods, ButtonMethods, MessageParseMethods): | |||
| 
 | ||||
|                 You cannot use this if both `entity` and `ids` are ``None``. | ||||
| 
 | ||||
|             _total (`list`, optional): | ||||
|                 A single-item list to pass the total parameter by reference. | ||||
| 
 | ||||
|         Yields: | ||||
|             Instances of `telethon.tl.custom.message.Message`. | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user