Skip to content

Commit dd3fc3e

Browse files
committed
Docstring fix: classes descriptions.
1 parent d35afa0 commit dd3fc3e

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

‎telebot/types.py‎

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17493,7 +17493,7 @@ def to_dict(self) -> dict:
1749317493

1749417494
class DisabledButton(Dictionaryable, JsonSerializable, JsonDeserializable):
1749517495
"""
17496-
Represents a disabled inline or rich-message button.
17496+
This object represents a disabled button which does nothing. Currently holds no information.
1749717497

1749817498
Telegram documentation: https://core.telegram.org/bots/api#disabledbutton
1749917499

@@ -17550,7 +17550,7 @@ def to_json(self):
1755017550

1755117551
class MessageGenerationStopped(JsonDeserializable):
1755217552
"""
17553-
Describes an update about a user stopping message generation.
17553+
This object describes an update about a user stopping message generation.
1755417554

1755517555
Telegram documentation: https://core.telegram.org/bots/api#messagegenerationstopped
1755617556

@@ -17581,9 +17581,7 @@ def de_json(cls, json_string):
1758117581

1758217582
class RichMessageButton(Dictionaryable, JsonSerializable, JsonDeserializable):
1758317583
"""
17584-
Represents a button in a rich formatted message.
17585-
17586-
Exactly one field other than text and style must be specified to define the button action.
17584+
This object represents a button in a RichMessage. Exactly one of the fields other than text and style must be used to specify the type of the button.
1758717585

1758817586
Telegram documentation: https://core.telegram.org/bots/api#richmessagebutton
1758917587

@@ -17689,7 +17687,7 @@ def de_json(cls, json_string):
1768917687

1769017688
class RichTextButton(RichText):
1769117689
"""
17692-
Represents a button in rich text.
17690+
A button.
1769317691

1769417692
Telegram documentation: https://core.telegram.org/bots/api#richtextbutton
1769517693

@@ -17721,7 +17719,7 @@ def de_json(cls, json_string):
1772117719

1772217720
class RichBlockButtons(RichBlock):
1772317721
"""
17724-
Represents a block containing buttons shown in one row.
17722+
A block containing a list of buttons that are shown in one row, corresponding to the custom HTML tag <tg-button-row>.
1772517723

1772617724
Telegram documentation: https://core.telegram.org/bots/api#richblockbuttons
1772717725

@@ -17752,7 +17750,7 @@ def de_json(cls, json_string):
1775217750

1775317751
class InputRichBlockButtons(InputRichBlock):
1775417752
"""
17755-
Represents a button row in a rich formatted message to be sent.
17753+
A block containing a list of buttons that are shown in one row, corresponding to the custom HTML tag <tg-button-row>.
1775617754

1775717755
Telegram documentation: https://core.telegram.org/bots/api#inputrichblockbuttons
1775817756

@@ -17783,7 +17781,7 @@ def to_dict(self):
1778317781

1778417782
class RichBlockExpandableBlockQuotation(RichBlock):
1778517783
"""
17786-
Represents an expandable block quotation.
17784+
A block quotation, corresponding to the HTML tag <blockquote> with custom attribute "expandable".
1778717785

1778817786
Telegram documentation: https://core.telegram.org/bots/api#richblockexpandableblockquotation
1778917787

@@ -17816,7 +17814,7 @@ def de_json(cls, json_string):
1781617814

1781717815
class InputRichBlockExpandableBlockQuotation(InputRichBlock):
1781817816
"""
17819-
Represents an expandable block quotation in a rich formatted message to be sent.
17817+
A block quotation, corresponding to the HTML tag <blockquote> with custom attribute "expandable".
1782017818

1782117819
Telegram documentation: https://core.telegram.org/bots/api#inputrichblockexpandableblockquotation
1782217820

@@ -17847,7 +17845,7 @@ def to_dict(self):
1784717845

1784817846
class RichBlockDocument(RichBlock):
1784917847
"""
17850-
Represents a block with a general file.
17848+
A block with a general file, corresponding to the custom HTML tag <tg-document>.
1785117849

1785217850
Telegram documentation: https://core.telegram.org/bots/api#richblockdocument
1785317851

@@ -17879,7 +17877,7 @@ def de_json(cls, json_string):
1787917877

1788017878
class InputRichBlockDocument(InputRichBlock):
1788117879
"""
17882-
Represents a block with a general file in a rich formatted message to be sent.
17880+
A block with a general file, corresponding to the custom HTML tag <tg-document>.
1788317881

1788417882
Telegram documentation: https://core.telegram.org/bots/api#inputrichblockdocument
1788517883

0 commit comments

Comments
 (0)