mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
icon_custom_emoji_id and name parameters made optional for edit_forum_topic
The parameters name and icon_custom_emoji_id of the method editForumTopic are now optional. If they are omitted, the existing values are kept.
This commit is contained in:
@@ -4648,8 +4648,8 @@ class TeleBot:
|
||||
|
||||
def edit_forum_topic(
|
||||
self, chat_id: Union[int, str],
|
||||
message_thread_id: int, name: str,
|
||||
icon_custom_emoji_id: str,
|
||||
message_thread_id: int, name: Optional[str]=None,
|
||||
icon_custom_emoji_id: Optional[str]=None
|
||||
) -> bool:
|
||||
"""
|
||||
Use this method to edit name and icon of a topic in a forum supergroup chat. The bot must be an
|
||||
@@ -4664,10 +4664,13 @@ class TeleBot:
|
||||
:param message_thread_id: Identifier of the topic to edit
|
||||
:type message_thread_id: :obj:`int`
|
||||
|
||||
:param name: New name of the topic, 1-128 characters
|
||||
:param name: Optional, New name of the topic, 1-128 characters. If not specififed or empty,
|
||||
the current name of the topic will be kept
|
||||
:type name: :obj:`str`
|
||||
|
||||
:param icon_custom_emoji_id: New custom emoji for the topic icon. Must be an emoji of type “tgs” and must be exactly 1 character long
|
||||
:param icon_custom_emoji_id: Optional, New unique identifier of the custom emoji shown as the topic icon.
|
||||
Use getForumTopicIconStickers to get all allowed custom emoji identifiers. Pass an empty string to remove the
|
||||
icon. If not specified, the current icon will be kept
|
||||
:type icon_custom_emoji_id: :obj:`str`
|
||||
|
||||
:return: On success, True is returned.
|
||||
|
||||
Reference in New Issue
Block a user