Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for topics in Bot API 6.3 (#1061)
* Added support for topics in Bot API 6.3 * Added the field can_manage_topics * Added new classes for topics * Added is_forum field to Chat class Co-authored-by: katant <katantdev@mail.ru>
- Loading branch information
Showing
14 changed files
with
210 additions
and
9 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from . import base | ||
|
||
|
||
class ForumTopicClosed(base.TelegramObject): | ||
""" | ||
This object represents a service message about a forum topic closed in the chat. Currently holds no information. | ||
https://core.telegram.org/bots/api#forumtopicclosed | ||
""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from . import base | ||
from . import fields | ||
|
||
|
||
class ForumTopicCreated(base.TelegramObject): | ||
""" | ||
This object represents a service message about a new forum topic created in the chat. | ||
https://core.telegram.org/bots/api#forumtopiccreated | ||
""" | ||
name: base.String = fields.Field() | ||
icon_color: base.Integer = fields.Field() | ||
icon_custom_emoji_id: base.String = fields.Field() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from . import base | ||
|
||
|
||
class ForumTopicReopened(base.TelegramObject): | ||
""" | ||
This object represents a service message about a forum topic closed in the chat. Currently holds no information. | ||
https://core.telegram.org/bots/api#forumtopicreopened | ||
""" | ||
pass |
Oops, something went wrong.