Skip to content

Commit 06c269c

Browse files
committed
closing remarks from pieter
1 parent d6a0902 commit 06c269c

File tree

14 files changed

+28
-20
lines changed

14 files changed

+28
-20
lines changed

telegram/bot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2849,8 +2849,8 @@ def set_chat_administrator_custom_title(self,
28492849
timeout=None,
28502850
**kwargs):
28512851
"""
2852-
Use this method to set custom title for owner or administrators. The bot must be an
2853-
administrator in the supergroup for this to work. Returns True on success.
2852+
Use this method to set a custom title for administrators promoted by the bot in a
2853+
supergroup. The bot must be an administrator for this to work. Returns True on success.
28542854
28552855
Args:
28562856
chat_id (:obj:`int` | :obj:`str`): Unique identifier for the target chat or username of
@@ -3594,7 +3594,7 @@ def __reduce__(self):
35943594
setChatPermissions = set_chat_permissions
35953595
"""Alias for :attr:`set_chat_permissions`"""
35963596
setChatAdministratorCustomTitle = set_chat_administrator_custom_title
3597-
"""Alias for :attr:`set_chat_administrator_custom_title"""
3597+
"""Alias for :attr:`set_chat_administrator_custom_title`"""
35983598
exportChatInviteLink = export_chat_invite_link
35993599
"""Alias for :attr:`export_chat_invite_link`"""
36003600
setChatPhoto = set_chat_photo

telegram/chat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ def __init__(self,
100100
invite_link=None,
101101
pinned_message=None,
102102
permissions=None,
103-
slow_mode_delay=None,
104103
sticker_set_name=None,
105104
can_set_sticker_set=None,
105+
slow_mode_delay=None,
106106
**kwargs):
107107
# Required
108108
self.id = int(id)

telegram/chatmember.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ class ChatMember(TelegramObject):
115115
RESTRICTED = 'restricted'
116116
""":obj:`str`: 'restricted'"""
117117

118-
def __init__(self, user, status, custom_title=None, until_date=None, can_be_edited=None,
118+
def __init__(self, user, status, until_date=None, can_be_edited=None,
119119
can_change_info=None, can_post_messages=None, can_edit_messages=None,
120120
can_delete_messages=None, can_invite_users=None,
121121
can_restrict_members=None, can_pin_messages=None,
122122
can_promote_members=None, can_send_messages=None,
123123
can_send_media_messages=None, can_send_polls=None, can_send_other_messages=None,
124-
can_add_web_page_previews=None, is_member=None, **kwargs):
124+
can_add_web_page_previews=None, is_member=None, custom_title=None, **kwargs):
125125
# Required
126126
self.user = user
127127
self.status = status

telegram/files/animation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Animation(TelegramObject):
2525
"""This object represents an animation file to be displayed in the message containing a game.
2626
2727
Attributes:
28-
file_id (:obj:`str`): Unique file identifier.
28+
file_id (:obj:`str`): File identifier.
2929
file_unique_id (:obj:`str`): Unique identifier for this file, which
3030
is supposed to be the same over time and for different bots.
3131
Can't be used to download or reuse the file.
@@ -40,7 +40,8 @@ class Animation(TelegramObject):
4040
bot (:class:`telegram.Bot`): Optional. The Bot to use for instance methods.
4141
4242
Args:
43-
file_id (:obj:`str`): Unique file identifier.
43+
file_id (:obj:`str`): Identifier for this file, which can be used to download
44+
or reuse the file.
4445
file_unique_id (:obj:`str`): Unique and the same over time and
4546
for different bots file identifier.
4647
width (:obj:`int`): Video width as defined by sender.

telegram/files/audio.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Audio(TelegramObject):
2626
2727
Attributes:
2828
file_id (:obj:`str`): Unique identifier for this file.
29-
file_id (:obj:`str`): Unique identifier for this file, which
29+
file_unique_id (:obj:`str`): Unique identifier for this file, which
3030
is supposed to be the same over time and for different bots.
3131
Can't be used to download or reuse the file.
3232
duration (:obj:`int`): Duration of the audio in seconds.
@@ -40,7 +40,8 @@ class Audio(TelegramObject):
4040
bot (:class:`telegram.Bot`): Optional. The Bot to use for instance methods.
4141
4242
Args:
43-
file_id (:obj:`str`): Unique identifier for this file.
43+
file_id (:obj:`str`): Identifier for this file, which can be used to download
44+
or reuse the file.
4445
file_unique_id (:obj:`str`): Unique and the same over time and
4546
for different bots file identifier.
4647
duration (:obj:`int`): Duration of the audio in seconds as defined by sender.

telegram/files/document.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ class Document(TelegramObject):
3636
bot (:class:`telegram.Bot`): Optional. The Bot to use for instance methods.
3737
3838
Args:
39-
file_id (:obj:`str`): Unique file identifier.
39+
file_id (:obj:`str`): Identifier for this file, which can be used to download
40+
or reuse the file.
4041
file_unique_id (:obj:`str`): Unique and the same over time and
4142
for different bots file identifier.
4243
thumb (:class:`telegram.PhotoSize`, optional): Document thumbnail as defined by sender.

telegram/files/file.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ class File(TelegramObject):
4444
file_path (:obj:`str`): Optional. File path. Use :attr:`download` to get the file.
4545
4646
Args:
47-
file_id (:obj:`str`): Unique identifier for this file.
47+
file_id (:obj:`str`): Identifier for this file, which can be used to download
48+
or reuse the file.
4849
file_unique_id (:obj:`str`): Unique and the same over time and
4950
for different bots file identifier.
5051
file_size (:obj:`int`, optional): Optional. File size, if known.

telegram/files/photosize.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ class PhotoSize(TelegramObject):
3535
bot (:class:`telegram.Bot`): Optional. The Bot to use for instance methods.
3636
3737
Args:
38-
file_id (:obj:`str`): Unique identifier for this file.
38+
file_id (:obj:`str`): Identifier for this file, which can be used to download
39+
or reuse the file.
3940
file_unique_id (:obj:`str`): Unique and the same over time and
4041
for different bots file identifier.
4142
width (:obj:`int`): Photo width.

telegram/files/sticker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ class Sticker(TelegramObject):
4242
bot (:class:`telegram.Bot`): Optional. The Bot to use for instance methods.
4343
4444
Args:
45-
file_id (:obj:`str`): Unique identifier for this file.
45+
file_id (:obj:`str`): Identifier for this file, which can be used to download
46+
or reuse the file.
4647
file_unique_id (:obj:`str`): Unique and the same over time and
4748
for different bots file identifier.
4849
width (:obj:`int`): Sticker width.

telegram/files/video.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ class Video(TelegramObject):
3838
bot (:class:`telegram.Bot`): Optional. The Bot to use for instance methods.
3939
4040
Args:
41-
file_id (:obj:`str`): Unique identifier for this file.
41+
file_id (:obj:`str`): Identifier for this file, which can be used to download
42+
or reuse the file.
4243
file_unique_id (:obj:`str`): Unique and the same over time and
4344
for different bots file identifier.
4445
width (:obj:`int`): Video width as defined by sender.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy