diff --git a/data/web/blogfork.telegram.org/bots/api-changelog.html b/data/web/blogfork.telegram.org/bots/api-changelog.html index 7475458d85..6595769a46 100644 --- a/data/web/blogfork.telegram.org/bots/api-changelog.html +++ b/data/web/blogfork.telegram.org/bots/api-changelog.html @@ -54,6 +54,20 @@ To learn how to create…">

Subscribe to @BotNews to be the first to know about the latest updates and join the discussion in @BotTalk

+

November 5, 2022

+

Bot API 6.3

+

August 12, 2022

Bot API 6.2

Custom Emoji Support

diff --git a/data/web/core.telegram.org/bots/api-changelog.html b/data/web/core.telegram.org/bots/api-changelog.html index 7475458d85..6595769a46 100644 --- a/data/web/core.telegram.org/bots/api-changelog.html +++ b/data/web/core.telegram.org/bots/api-changelog.html @@ -54,6 +54,20 @@ To learn how to create…">

Subscribe to @BotNews to be the first to know about the latest updates and join the discussion in @BotTalk

+

November 5, 2022

+

Bot API 6.3

+

August 12, 2022

Bot API 6.2

Custom Emoji Support

diff --git a/data/web/core.telegram.org/bots/api.html b/data/web/core.telegram.org/bots/api.html index 839c576750..354368e5ae 100644 --- a/data/web/core.telegram.org/bots/api.html +++ b/data/web/core.telegram.org/bots/api.html @@ -53,6 +53,20 @@ To learn how to create…">

Subscribe to @BotNews to be the first to know about the latest updates and join the discussion in @BotTalk

+

November 5, 2022

+

Bot API 6.3

+

August 12, 2022

Bot API 6.2

Custom Emoji Support

@@ -566,11 +580,26 @@ To learn how to create…"> Optional. Last name of the other party in a private chat +is_forum +True +Optional. True, if the supergroup chat is a forum (has topics enabled) + + photo ChatPhoto Optional. Chat photo. Returned only in getChat. +active_usernames +Array of String +Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels. Returned only in getChat. + + +emoji_status_custom_emoji_id +String +Optional. Custom emoji identifier of emoji status of the other party in a private chat. Returned only in getChat. + + bio String Optional. Bio of the other party in a private chat. Returned only in getChat. @@ -669,6 +698,11 @@ To learn how to create…"> Unique message identifier inside this chat +message_thread_id +Integer +Optional. Unique identifier of a message thread to which the message belongs; for supergroups only + + from User Optional. Sender of the message; empty for messages sent to channels. For backward compatibility, the field contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat. @@ -719,6 +753,11 @@ To learn how to create…"> Optional. For forwarded messages, date the original message was sent in Unix time +is_topic_message +True +Optional. True, if the message is sent to a forum topic + + is_automatic_forward True Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion group @@ -929,6 +968,21 @@ To learn how to create…"> Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live Location. +forum_topic_created +ForumTopicCreated +Optional. Service message: forum topic created + + +forum_topic_closed +ForumTopicClosed +Optional. Service message: forum topic closed + + +forum_topic_reopened +ForumTopicReopened +Optional. Service message: forum topic reopened + + video_chat_scheduled VideoChatScheduled Optional. Service message: video chat scheduled @@ -1712,6 +1766,38 @@ To learn how to create…"> +

ForumTopicCreated

+

This object represents a service message about a new forum topic created in the chat.

+ + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
nameStringName of the topic
icon_colorIntegerColor of the topic icon in RGB format
icon_custom_emoji_idStringOptional. Unique identifier of the custom emoji shown as the topic icon
+

ForumTopicClosed

+

This object represents a service message about a forum topic closed in the chat. Currently holds no information.

+

ForumTopicReopened

+

This object represents a service message about a forum topic reopened in the chat. Currently holds no information.

VideoChatScheduled

This object represents a service message about a video chat scheduled in the chat.

@@ -2325,6 +2411,11 @@ To learn how to create…"> + + + + +
Boolean Optional. True, if the user is allowed to pin messages; groups and supergroups only
can_manage_topicsBooleanOptional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only

ChatMember

@@ -2452,6 +2543,11 @@ To learn how to create…"> Optional. True, if the user is allowed to pin messages; groups and supergroups only +can_manage_topics +Boolean +Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only + + custom_title String Optional. Custom title for this user @@ -2523,6 +2619,11 @@ To learn how to create…"> True, if the user is allowed to pin messages +can_manage_topics +Boolean +True, if the user is allowed to create forum topics + + can_send_messages Boolean True, if the user is allowed to send text messages, contacts, locations and venues @@ -2737,6 +2838,11 @@ To learn how to create…"> Boolean Optional. True, if the user is allowed to pin messages. Ignored in public supergroups + +can_manage_topics +Boolean +Optional. True, if the user is allowed to create forum topics. If omitted defaults to the value of can_pin_messages +

ChatLocation

@@ -2762,6 +2868,39 @@ To learn how to create…"> +

ForumTopic

+

This object represents a forum topic.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
message_thread_idIntegerUnique identifier of the forum topic
nameStringName of the topic
icon_colorIntegerColor of the topic icon in RGB format
icon_custom_emoji_idStringOptional. Unique identifier of the custom emoji shown as the topic icon

BotCommand

This object represents a bot command.

@@ -3392,6 +3531,12 @@ To learn how to create…"> + + + + + + @@ -3542,6 +3687,12 @@ pre-formatted fixed-width code block written in the Python programming language + + + + + + @@ -3586,6 +3737,12 @@ pre-formatted fixed-width code block written in the Python programming language + + + + + + @@ -3666,6 +3823,12 @@ pre-formatted fixed-width code block written in the Python programming language + + + + + + @@ -3741,6 +3904,12 @@ pre-formatted fixed-width code block written in the Python programming language + + + + + + @@ -3839,6 +4008,12 @@ pre-formatted fixed-width code block written in the Python programming language + + + + + + @@ -3925,6 +4100,12 @@ pre-formatted fixed-width code block written in the Python programming language + + + + + + @@ -4029,6 +4210,12 @@ pre-formatted fixed-width code block written in the Python programming language + + + + + + @@ -4127,6 +4314,12 @@ pre-formatted fixed-width code block written in the Python programming language + + + + + + @@ -4207,6 +4400,12 @@ pre-formatted fixed-width code block written in the Python programming language + + + + + + @@ -4281,6 +4480,12 @@ pre-formatted fixed-width code block written in the Python programming language + + + + + + @@ -4331,6 +4536,12 @@ pre-formatted fixed-width code block written in the Python programming language + + + + + + @@ -4523,6 +4734,12 @@ pre-formatted fixed-width code block written in the Python programming language + + + + + + @@ -4621,6 +4838,12 @@ pre-formatted fixed-width code block written in the Python programming language + + + + + + @@ -4695,6 +4918,12 @@ pre-formatted fixed-width code block written in the Python programming language + + + + + + @@ -4817,6 +5046,12 @@ pre-formatted fixed-width code block written in the Python programming language + + + + + + @@ -5135,6 +5370,12 @@ pre-formatted fixed-width code block written in the Python programming language + + + + + +
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
message_thread_idIntegerOptionalUnique identifier for the target message thread (topic) of the forum; for forum supergroups only
text String YesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
message_thread_idIntegerOptionalUnique identifier for the target message thread (topic) of the forum; for forum supergroups only
from_chat_id Integer or String YesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
message_thread_idIntegerOptionalUnique identifier for the target message thread (topic) of the forum; for forum supergroups only
from_chat_id Integer or String YesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
message_thread_idIntegerOptionalUnique identifier for the target message thread (topic) of the forum; for forum supergroups only
photo InputFile or String YesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
message_thread_idIntegerOptionalUnique identifier for the target message thread (topic) of the forum; for forum supergroups only
audio InputFile or String YesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
message_thread_idIntegerOptionalUnique identifier for the target message thread (topic) of the forum; for forum supergroups only
document InputFile or String YesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
message_thread_idIntegerOptionalUnique identifier for the target message thread (topic) of the forum; for forum supergroups only
video InputFile or String YesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
message_thread_idIntegerOptionalUnique identifier for the target message thread (topic) of the forum; for forum supergroups only
animation InputFile or String YesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
message_thread_idIntegerOptionalUnique identifier for the target message thread (topic) of the forum; for forum supergroups only
voice InputFile or String YesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
message_thread_idIntegerOptionalUnique identifier for the target message thread (topic) of the forum; for forum supergroups only
video_note InputFile or String YesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
message_thread_idIntegerOptionalUnique identifier for the target message thread (topic) of the forum; for forum supergroups only
media Array of InputMediaAudio, InputMediaDocument, InputMediaPhoto and InputMediaVideo YesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
message_thread_idIntegerOptionalUnique identifier for the target message thread (topic) of the forum; for forum supergroups only
latitude Float number YesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
message_thread_idIntegerOptionalUnique identifier for the target message thread (topic) of the forum; for forum supergroups only
latitude Float number YesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
message_thread_idIntegerOptionalUnique identifier for the target message thread (topic) of the forum; for forum supergroups only
phone_number String YesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
message_thread_idIntegerOptionalUnique identifier for the target message thread (topic) of the forum; for forum supergroups only
question String YesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
message_thread_idIntegerOptionalUnique identifier for the target message thread (topic) of the forum; for forum supergroups only
emoji String OptionalOptional Pass True if the administrator can pin messages, supergroups only
can_manage_topicsBooleanOptionalPass True if the user is allowed to create, rename, close, and reopen forum topics, supergroups only

setChatAdministratorCustomTitle

@@ -5510,7 +5751,7 @@ pre-formatted fixed-width code block written in the Python programming language title String Yes -New chat title, 1-255 characters +New chat title, 1-128 characters @@ -5770,6 +6011,188 @@ pre-formatted fixed-width code block written in the Python programming language +

getForumTopicIconStickers

+

Use this method to get custom emoji stickers, which can be used as a forum topic icon by any user. Requires no parameters. Returns an Array of Sticker objects.

+

createForumTopic

+

Use this method to create a topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. Returns information about the created topic as a ForumTopic object.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
nameStringYesTopic name, 1-128 characters
icon_colorIntegerOptionalColor of the topic icon in RGB format. Currently, must be one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F
icon_custom_emoji_idStringOptionalUnique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers.
+

editForumTopic

+

Use this method to edit name and icon of a topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have can_manage_topics administrator rights, unless it is the creator of the topic. Returns True on success.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
message_thread_idIntegerYesUnique identifier for the target message thread of the forum topic
nameStringYesNew topic name, 1-128 characters
icon_custom_emoji_idStringYesNew unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers
+

closeForumTopic

+

Use this method to close an open topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights, unless it is the creator of the topic. Returns True on success.

+ + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
message_thread_idIntegerYesUnique identifier for the target message thread of the forum topic
+

reopenForumTopic

+

Use this method to reopen a closed topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights, unless it is the creator of the topic. Returns True on success.

+ + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
message_thread_idIntegerYesUnique identifier for the target message thread of the forum topic
+

deleteForumTopic

+

Use this method to delete a forum topic along with all its messages in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_delete_messages administrator rights. Returns True on success.

+ + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
message_thread_idIntegerYesUnique identifier for the target message thread of the forum topic
+

unpinAllForumTopicMessages

+

Use this method to clear the list of pinned messages in a forum topic. The bot must be an administrator in the chat for this to work and must have the can_pin_messages administrator right in the supergroup. Returns True on success.

+ + + + + + + + + + + + + + + + + + + + + + + +
ParameterTypeRequiredDescription
chat_idInteger or StringYesUnique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
message_thread_idIntegerYesUnique identifier for the target message thread of the forum topic

answerCallbackQuery

Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, True is returned.

@@ -6231,7 +6654,7 @@ pre-formatted fixed-width code block written in the Python programming language

deleteMessage

-

Use this method to delete a message, including service messages, with the following limitations:
- A message can only be deleted if it was sent less than 48 hours ago.
- A dice message in a private chat can only be deleted if it was sent more than 24 hours ago.
- Bots can delete outgoing messages in private chats, groups, and supergroups.
- Bots can delete incoming messages in private chats.
- Bots granted can_post_messages permissions can delete outgoing messages in channels.
- If the bot is an administrator of a group, it can delete any message there.
- If the bot has can_delete_messages permission in a supergroup or a channel, it can delete any message there.
Returns True on success.

+

Use this method to delete a message, including service messages, with the following limitations:
- A message can only be deleted if it was sent less than 48 hours ago.
- Service messages about a supergroup, channel, or forum topic creation can't be deleted.
- A dice message in a private chat can only be deleted if it was sent more than 24 hours ago.
- Bots can delete outgoing messages in private chats, groups, and supergroups.
- Bots can delete incoming messages in private chats.
- Bots granted can_post_messages permissions can delete outgoing messages in channels.
- If the bot is an administrator of a group, it can delete any message there.
- If the bot has can_delete_messages permission in a supergroup or a channel, it can delete any message there.
Returns True on success.

@@ -6441,6 +6864,12 @@ pre-formatted fixed-width code block written in the Python programming language + + + + + + @@ -8615,6 +9044,12 @@ pre-formatted fixed-width code block written in the Python programming language + + + + + + @@ -9793,6 +10228,12 @@ pre-formatted fixed-width code block written in the Python programming language + + + + + + diff --git a/data/web/corefork.telegram.org/bots/api-changelog.html b/data/web/corefork.telegram.org/bots/api-changelog.html index 79e4c9a0fc..69cae66e1b 100644 --- a/data/web/corefork.telegram.org/bots/api-changelog.html +++ b/data/web/corefork.telegram.org/bots/api-changelog.html @@ -54,6 +54,20 @@ To learn how to create…">

Subscribe to @BotNews to be the first to know about the latest updates and join the discussion in @BotTalk

+

November 5, 2022

+

Bot API 6.3

+

August 12, 2022

Bot API 6.2

Custom Emoji Support

Unique identifier for the target chat or username of the target channel (in the format @channelusername)
message_thread_idIntegerOptionalUnique identifier for the target message thread (topic) of the forum; for forum supergroups only
sticker InputFile or String YesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
message_thread_idIntegerOptionalUnique identifier for the target message thread (topic) of the forum; for forum supergroups only
title String YesUnique identifier for the target chat
message_thread_idIntegerOptionalUnique identifier for the target message thread (topic) of the forum; for forum supergroups only
game_short_name String Yes