You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @brief Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message.
@@ -732,18 +738,20 @@ friend class Bot;
732
738
* The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status).
733
739
*
734
740
* Example: The ImageBot needs some time to process a request and upload the image.
735
-
* Instead of sending a text message along the lines of “Retrieving image, please wait…”, the bot may use sendChatAction with action = upload_photo.
741
+
* Instead of sending a text message along the lines of “Retrieving image, please wait…”, the bot may use Api::sendChatAction with action = upload_photo.
736
742
* The user will see a “sending photo” status for the bot.
737
743
*
738
744
* We only recommend using this method when a response from the bot will take a noticeable amount of time to arrive.
739
745
*
740
746
* @param chatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
741
747
* @param action Type of action to broadcast. Choose one, depending on what the user is about to receive: typing for text messages, upload_photo for photos, record_video or upload_video for videos, record_voice or upload_voice for voice notes, upload_document for general files, choose_sticker for stickers, find_location for location data, record_video_note or upload_video_note for video notes.
748
+
* @param messageThreadId Optional. Unique identifier for the target message thread; supergroups only
742
749
*
743
-
* @return True on success.
750
+
* @return Returns True on success.
744
751
*/
745
752
boolsendChatAction(std::int64_t chatId,
746
-
const std::string& action) const;
753
+
const std::string& action,
754
+
std::int32_t messageThreadId = 0) const;
747
755
748
756
/**
749
757
* @brief Use this method to get a list of profile pictures for a user.
@@ -1149,6 +1157,8 @@ friend class Bot;
1149
1157
/**
1150
1158
* @brief Use this method to get information about a member of a chat.
1151
1159
*
1160
+
* The method is guaranteed to work for other users, only if the bot is an administrator in the chat.
1161
+
*
1152
1162
* @param chatId Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)
1153
1163
* @param userId Unique identifier of the target user
1154
1164
*
@@ -1214,15 +1224,15 @@ friend class Bot;
1214
1224
*
1215
1225
* @param chatId Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
1216
1226
* @param messageThreadId Unique identifier for the target message thread of the forum topic
1217
-
* @param name New topic name, 1-128 characters
1218
-
* @param iconCustomEmojiId New unique identifier of the custom emoji shown as the topic icon. Use Api::getForumTopicIconStickers to get all allowed custom emoji identifiers
1227
+
* @param name Optional. New topic name, 0-128 characters. If not specified or empty, the current name of the topic will be kept
1228
+
* @param iconCustomEmojiId Optional. New unique identifier of the custom emoji shown as the topic icon. Use Api::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
Copy file name to clipboardExpand all lines: include/tgbot/types/InputMedia.h
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -31,24 +31,26 @@ class InputMedia {
31
31
32
32
/**
33
33
* @brief File to send.
34
+
*
34
35
* Pass a fileId to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name.
0 commit comments