1 | <?php |
||
2 | |||
3 | namespace BPT; |
||
4 | |||
5 | use BPT\settings\easySettings; |
||
6 | use BPT\types\botCommand; |
||
7 | use BPT\types\botCommandScope; |
||
8 | use BPT\types\botDescription; |
||
9 | use BPT\types\botName; |
||
10 | use BPT\types\botShortDescription; |
||
11 | use BPT\types\businessConnection; |
||
12 | use BPT\types\chat; |
||
13 | use BPT\types\chatAdministratorRights; |
||
14 | use BPT\types\chatFullInfo; |
||
15 | use BPT\types\chatInviteLink; |
||
16 | use BPT\types\chatMember; |
||
17 | use BPT\types\chatPermissions; |
||
18 | use BPT\types\file; |
||
19 | use BPT\types\forceReply; |
||
20 | use BPT\types\forumTopic; |
||
21 | use BPT\types\gameHighScore; |
||
22 | use BPT\types\inlineKeyboardMarkup; |
||
23 | use BPT\types\inlineQueryResult; |
||
24 | use BPT\types\inlineQueryResultsButton; |
||
25 | use BPT\types\inputMedia; |
||
26 | use BPT\types\inputPollOption; |
||
27 | use BPT\types\inputSticker; |
||
28 | use BPT\types\labeledPrice; |
||
29 | use BPT\types\linkPreviewOptions; |
||
30 | use BPT\types\maskPosition; |
||
31 | use BPT\types\menuButton; |
||
32 | use BPT\types\message; |
||
33 | use BPT\types\messageEntity; |
||
34 | use BPT\types\messageId; |
||
35 | use BPT\types\passportElementError; |
||
36 | use BPT\types\poll; |
||
37 | use BPT\types\reactionType; |
||
38 | use BPT\types\replyKeyboardMarkup; |
||
39 | use BPT\types\replyKeyboardRemove; |
||
40 | use BPT\types\replyParameters; |
||
41 | use BPT\types\responseError; |
||
42 | use BPT\types\sentWebAppMessage; |
||
43 | use BPT\types\shippingOption; |
||
44 | use BPT\types\sticker; |
||
45 | use BPT\types\stickerSet; |
||
46 | use BPT\types\update; |
||
47 | use BPT\types\user; |
||
48 | use BPT\types\userChatBoosts; |
||
49 | use BPT\types\userProfilePhotos; |
||
50 | use BPT\types\webhookInfo; |
||
51 | use BPT\telegram\telegram; |
||
52 | use CURLFile; |
||
53 | use JetBrains\PhpStorm\NoReturn; |
||
54 | use stdClass; |
||
55 | |||
56 | /** |
||
57 | * BPT CLASS |
||
58 | * Simple library for handling telegram bot and write it very easily |
||
59 | * BOT API version : 7.4 |
||
60 | * |
||
61 | * @method update[]|responseError getUpdates (int|array|null $offset = null, int|null $limit = null, int|null $timeout = null, string[]|null $allowed_updates = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to receive incoming updates using long polling (wiki). Returns an Array of Update objects. |
||
62 | * @method update[]|responseError getUp (int|array|null $offset = null, int|null $limit = null, int|null $timeout = null, string[]|null $allowed_updates = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to receive incoming updates using long polling (wiki). Returns an Array of Update objects. |
||
63 | * @method update[]|responseError updates (int|array|null $offset = null, int|null $limit = null, int|null $timeout = null, string[]|null $allowed_updates = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to receive incoming updates using long polling (wiki). Returns an Array of Update objects. |
||
64 | * @method update[]|responseError up (int|array|null $offset = null, int|null $limit = null, int|null $timeout = null, string[]|null $allowed_updates = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to receive incoming updates using long polling (wiki). Returns an Array of Update objects. |
||
65 | * @method bool|responseError setWebhook (string|array|null $url = null, CURLFile|object|null $certificate = null, string|null $ip_address = null, int|null $max_connections = null, string[]|null $allowed_updates = null, bool|null $drop_pending_updates = null, string|null $secret_token = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to specify a URL and receive incoming updates via an outgoing webhook. Whenever there is an update for the bot, we will send an HTTPS POST request to the specified URL, containing a JSON-serialized Update. In case of an unsuccessful request, we will give up after a reasonable amount of attempts. Returns True on success.If you'd like to make sure that the webhook was set by you, you can specify secret data in the parameter secret_token. If specified, the request will contain a header “X-Telegram-Bot-Api-Secret-Token” with the secret token as content. |
||
66 | * @method bool|responseError setWeb (string|array|null $url = null, CURLFile|object|null $certificate = null, string|null $ip_address = null, int|null $max_connections = null, string[]|null $allowed_updates = null, bool|null $drop_pending_updates = null, string|null $secret_token = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to specify a URL and receive incoming updates via an outgoing webhook. Whenever there is an update for the bot, we will send an HTTPS POST request to the specified URL, containing a JSON-serialized Update. In case of an unsuccessful request, we will give up after a reasonable amount of attempts. Returns True on success.If you'd like to make sure that the webhook was set by you, you can specify secret data in the parameter secret_token. If specified, the request will contain a header “X-Telegram-Bot-Api-Secret-Token” with the secret token as content. |
||
67 | * @method bool|responseError webhook (string|array|null $url = null, CURLFile|object|null $certificate = null, string|null $ip_address = null, int|null $max_connections = null, string[]|null $allowed_updates = null, bool|null $drop_pending_updates = null, string|null $secret_token = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to specify a URL and receive incoming updates via an outgoing webhook. Whenever there is an update for the bot, we will send an HTTPS POST request to the specified URL, containing a JSON-serialized Update. In case of an unsuccessful request, we will give up after a reasonable amount of attempts. Returns True on success.If you'd like to make sure that the webhook was set by you, you can specify secret data in the parameter secret_token. If specified, the request will contain a header “X-Telegram-Bot-Api-Secret-Token” with the secret token as content. |
||
68 | * @method bool|responseError deleteWebhook (bool|array|null $drop_pending_updates = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success. |
||
69 | * @method bool|responseError deleteWeb (bool|array|null $drop_pending_updates = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success. |
||
70 | * @method bool|responseError delWeb (bool|array|null $drop_pending_updates = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success. |
||
71 | * @method webhookInfo|responseError getWebhookInfo (string|array|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get current webhook status. Requires no parameters. On success, returns a WebhookInfo object. If the bot is using getUpdates, will return an object with the url field empty. |
||
72 | * @method webhookInfo|responseError getWebhook (string|array|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get current webhook status. Requires no parameters. On success, returns a WebhookInfo object. If the bot is using getUpdates, will return an object with the url field empty. |
||
73 | * @method webhookInfo|responseError getWeb (string|array|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get current webhook status. Requires no parameters. On success, returns a WebhookInfo object. If the bot is using getUpdates, will return an object with the url field empty. |
||
74 | * @method user|responseError getMe (string|array|null $token = null, bool|null $forgot = null, bool|null $answer = null) A simple method for testing your bot's authentication token. Requires no parameters. Returns basic information about the bot in form of a User object. |
||
75 | * @method user|responseError me (string|array|null $token = null, bool|null $forgot = null, bool|null $answer = null) A simple method for testing your bot's authentication token. Requires no parameters. Returns basic information about the bot in form of a User object. |
||
76 | * @method bool|responseError logOut (string|array|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to log out from the cloud Bot API server before launching the bot locally. You must log out the bot before running it locally, otherwise there is no guarantee that the bot will receive updates. After a successful call, you can immediately log in on a local server, but will not be able to log in back to the cloud Bot API server for 10 minutes. Returns True on success. Requires no parameters. |
||
77 | * @method bool|responseError close (string|array|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to close the bot instance before moving it from one local server to another. You need to delete the webhook before calling this method to ensure that the bot isn't launched again after server restart. The method will return error 429 in the first 10 minutes after the bot is launched. Returns True on success. Requires no parameters. |
||
78 | * @method message|responseError sendMessage (string|array $text, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, string|null $parse_mode = null, messageEntity[]|null $entities = null, linkPreviewOptions|object|array|null $link_preview_options = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send text messages. On success, the sent Message is returned. |
||
79 | * @method message|responseError sendText (string|array $text, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, string|null $parse_mode = null, messageEntity[]|null $entities = null, linkPreviewOptions|object|array|null $link_preview_options = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send text messages. On success, the sent Message is returned. |
||
80 | * @method message|responseError send (string|array $text, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, string|null $parse_mode = null, messageEntity[]|null $entities = null, linkPreviewOptions|object|array|null $link_preview_options = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send text messages. On success, the sent Message is returned. |
||
81 | * @method message|responseError forwardMessage (int|string|array $chat_id, int|null $message_thread_id = null, int|string|null $from_chat_id = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, int|null $message_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to forward messages of any kind. Service messages and messages with protected content can't be forwarded. On success, the sent Message is returned. |
||
82 | * @method message|responseError forward (int|string|array $chat_id, int|null $message_thread_id = null, int|string|null $from_chat_id = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, int|null $message_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to forward messages of any kind. Service messages and messages with protected content can't be forwarded. On success, the sent Message is returned. |
||
83 | * @method messageId[]|responseError forwardMessages (int|string|array $chat_id, int[] $message_ids, int|null $message_thread_id = null, int|string|null $from_chat_id = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to forward multiple messages of any kind. If some of the specified messages can't be found or forwarded, they are skipped. Service messages and messages with protected content can't be forwarded. Album grouping is kept for forwarded messages. On success, an array of MessageId of the sent messages is returned. |
||
84 | * @method messageId[]|responseError forwards (int|string|array $chat_id, int[] $message_ids, int|null $message_thread_id = null, int|string|null $from_chat_id = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to forward multiple messages of any kind. If some of the specified messages can't be found or forwarded, they are skipped. Service messages and messages with protected content can't be forwarded. Album grouping is kept for forwarded messages. On success, an array of MessageId of the sent messages is returned. |
||
85 | * @method messageId|responseError copyMessage (int|string|array $chat_id, int|null $message_thread_id = null, int|string|null $from_chat_id = null, int|null $message_id = null, string|null $caption = null, string|null $parse_mode = null, messageEntity[]|null $caption_entities = null, bool|null $show_caption_above_media = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to copy messages of any kind. Service messages, giveaway messages, giveaway winners messages, and invoice messages can't be copied. A quiz poll can be copied only if the value of the field correct_option_id is known to the bot. The method is analogous to the method forwardMessage, but the copied message doesn't have a link to the original message. Returns the MessageId of the sent message on success. |
||
86 | * @method messageId|responseError copy (int|string|array $chat_id, int|null $message_thread_id = null, int|string|null $from_chat_id = null, int|null $message_id = null, string|null $caption = null, string|null $parse_mode = null, messageEntity[]|null $caption_entities = null, bool|null $show_caption_above_media = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to copy messages of any kind. Service messages, giveaway messages, giveaway winners messages, and invoice messages can't be copied. A quiz poll can be copied only if the value of the field correct_option_id is known to the bot. The method is analogous to the method forwardMessage, but the copied message doesn't have a link to the original message. Returns the MessageId of the sent message on success. |
||
87 | * @method messageId[]|responseError copyMessages (int|string|array $chat_id, int[] $message_ids, int|null $message_thread_id = null, int|string|null $from_chat_id = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, bool|null $remove_caption = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to copy messages of any kind. If some of the specified messages can't be found or copied, they are skipped. Service messages, giveaway messages, giveaway winners messages, and invoice messages can't be copied. A quiz poll can be copied only if the value of the field correct_option_id is known to the bot. The method is analogous to the method forwardMessages, but the copied messages don't have a link to the original message. Album grouping is kept for copied messages. On success, an array of MessageId of the sent messages is returned. |
||
88 | * @method messageId[]|responseError copies (int|string|array $chat_id, int[] $message_ids, int|null $message_thread_id = null, int|string|null $from_chat_id = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, bool|null $remove_caption = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to copy messages of any kind. If some of the specified messages can't be found or copied, they are skipped. Service messages, giveaway messages, giveaway winners messages, and invoice messages can't be copied. A quiz poll can be copied only if the value of the field correct_option_id is known to the bot. The method is analogous to the method forwardMessages, but the copied messages don't have a link to the original message. Album grouping is kept for copied messages. On success, an array of MessageId of the sent messages is returned. |
||
89 | * @method message|responseError sendPhoto (CURLFile|string|array|object $photo, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, string|null $caption = null, string|null $parse_mode = null, messageEntity[]|null $caption_entities = null, bool|null $show_caption_above_media = null, bool|null $has_spoiler = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send photos. On success, the sent Message is returned. |
||
90 | * @method message|responseError photo (CURLFile|string|array|object $photo, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, string|null $caption = null, string|null $parse_mode = null, messageEntity[]|null $caption_entities = null, bool|null $show_caption_above_media = null, bool|null $has_spoiler = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send photos. On success, the sent Message is returned. |
||
91 | * @method message|responseError sendAudio (CURLFile|string|array|object $audio, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, string|null $caption = null, string|null $parse_mode = null, messageEntity[]|null $caption_entities = null, int|null $duration = null, string|null $performer = null, string|null $title = null, CURLFile|string|object|null $thumbnail = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send audio files, if you want Telegram clients to display them in the music player. Your audio must be in the .MP3 or .M4A format. On success, the sent Message is returned. Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future.For sending voice messages, use the sendVoice method instead. |
||
92 | * @method message|responseError audio (CURLFile|string|array|object $audio, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, string|null $caption = null, string|null $parse_mode = null, messageEntity[]|null $caption_entities = null, int|null $duration = null, string|null $performer = null, string|null $title = null, CURLFile|string|object|null $thumbnail = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send audio files, if you want Telegram clients to display them in the music player. Your audio must be in the .MP3 or .M4A format. On success, the sent Message is returned. Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future.For sending voice messages, use the sendVoice method instead. |
||
93 | * @method message|responseError sendDocument (CURLFile|string|array|object $document, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, CURLFile|string|object|null $thumbnail = null, string|null $caption = null, string|null $parse_mode = null, messageEntity[]|null $caption_entities = null, bool|null $disable_content_type_detection = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send general files. On success, the sent Message is returned. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future. |
||
94 | * @method message|responseError sendDoc (CURLFile|string|array|object $document, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, CURLFile|string|object|null $thumbnail = null, string|null $caption = null, string|null $parse_mode = null, messageEntity[]|null $caption_entities = null, bool|null $disable_content_type_detection = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send general files. On success, the sent Message is returned. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future. |
||
95 | * @method message|responseError document (CURLFile|string|array|object $document, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, CURLFile|string|object|null $thumbnail = null, string|null $caption = null, string|null $parse_mode = null, messageEntity[]|null $caption_entities = null, bool|null $disable_content_type_detection = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send general files. On success, the sent Message is returned. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future. |
||
96 | * @method message|responseError doc (CURLFile|string|array|object $document, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, CURLFile|string|object|null $thumbnail = null, string|null $caption = null, string|null $parse_mode = null, messageEntity[]|null $caption_entities = null, bool|null $disable_content_type_detection = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send general files. On success, the sent Message is returned. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future. |
||
97 | * @method message|responseError sendVideo (CURLFile|string|array|object $video, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, int|null $duration = null, int|null $width = null, int|null $height = null, CURLFile|string|object|null $thumbnail = null, string|null $caption = null, string|null $parse_mode = null, messageEntity[]|null $caption_entities = null, bool|null $show_caption_above_media = null, bool|null $has_spoiler = null, bool|null $supports_streaming = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send video files, Telegram clients support MPEG4 videos (other formats may be sent as Document). On success, the sent Message is returned. Bots can currently send video files of up to 50 MB in size, this limit may be changed in the future. |
||
98 | * @method message|responseError sendMovie (CURLFile|string|array|object $video, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, int|null $duration = null, int|null $width = null, int|null $height = null, CURLFile|string|object|null $thumbnail = null, string|null $caption = null, string|null $parse_mode = null, messageEntity[]|null $caption_entities = null, bool|null $show_caption_above_media = null, bool|null $has_spoiler = null, bool|null $supports_streaming = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send video files, Telegram clients support MPEG4 videos (other formats may be sent as Document). On success, the sent Message is returned. Bots can currently send video files of up to 50 MB in size, this limit may be changed in the future. |
||
99 | * @method message|responseError video (CURLFile|string|array|object $video, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, int|null $duration = null, int|null $width = null, int|null $height = null, CURLFile|string|object|null $thumbnail = null, string|null $caption = null, string|null $parse_mode = null, messageEntity[]|null $caption_entities = null, bool|null $show_caption_above_media = null, bool|null $has_spoiler = null, bool|null $supports_streaming = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send video files, Telegram clients support MPEG4 videos (other formats may be sent as Document). On success, the sent Message is returned. Bots can currently send video files of up to 50 MB in size, this limit may be changed in the future. |
||
100 | * @method message|responseError movie (CURLFile|string|array|object $video, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, int|null $duration = null, int|null $width = null, int|null $height = null, CURLFile|string|object|null $thumbnail = null, string|null $caption = null, string|null $parse_mode = null, messageEntity[]|null $caption_entities = null, bool|null $show_caption_above_media = null, bool|null $has_spoiler = null, bool|null $supports_streaming = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send video files, Telegram clients support MPEG4 videos (other formats may be sent as Document). On success, the sent Message is returned. Bots can currently send video files of up to 50 MB in size, this limit may be changed in the future. |
||
101 | * @method message|responseError sendAnimation (CURLFile|string|array|object $animation, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, int|null $duration = null, int|null $width = null, int|null $height = null, CURLFile|string|object|null $thumbnail = null, string|null $caption = null, string|null $parse_mode = null, messageEntity[]|null $caption_entities = null, bool|null $show_caption_above_media = null, bool|null $has_spoiler = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound). On success, the sent Message is returned. Bots can currently send animation files of up to 50 MB in size, this limit may be changed in the future. |
||
102 | * @method message|responseError sendGif (CURLFile|string|array|object $animation, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, int|null $duration = null, int|null $width = null, int|null $height = null, CURLFile|string|object|null $thumbnail = null, string|null $caption = null, string|null $parse_mode = null, messageEntity[]|null $caption_entities = null, bool|null $show_caption_above_media = null, bool|null $has_spoiler = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound). On success, the sent Message is returned. Bots can currently send animation files of up to 50 MB in size, this limit may be changed in the future. |
||
103 | * @method message|responseError animation (CURLFile|string|array|object $animation, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, int|null $duration = null, int|null $width = null, int|null $height = null, CURLFile|string|object|null $thumbnail = null, string|null $caption = null, string|null $parse_mode = null, messageEntity[]|null $caption_entities = null, bool|null $show_caption_above_media = null, bool|null $has_spoiler = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound). On success, the sent Message is returned. Bots can currently send animation files of up to 50 MB in size, this limit may be changed in the future. |
||
104 | * @method message|responseError gif (CURLFile|string|array|object $animation, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, int|null $duration = null, int|null $width = null, int|null $height = null, CURLFile|string|object|null $thumbnail = null, string|null $caption = null, string|null $parse_mode = null, messageEntity[]|null $caption_entities = null, bool|null $show_caption_above_media = null, bool|null $has_spoiler = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound). On success, the sent Message is returned. Bots can currently send animation files of up to 50 MB in size, this limit may be changed in the future. |
||
105 | * @method message|responseError sendVoice (CURLFile|string|array|object $voice, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, string|null $caption = null, string|null $parse_mode = null, messageEntity[]|null $caption_entities = null, int|null $duration = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS, or in .MP3 format, or in .M4A format (other formats may be sent as Audio or Document). On success, the sent Message is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future. |
||
106 | * @method message|responseError voice (CURLFile|string|array|object $voice, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, string|null $caption = null, string|null $parse_mode = null, messageEntity[]|null $caption_entities = null, int|null $duration = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS, or in .MP3 format, or in .M4A format (other formats may be sent as Audio or Document). On success, the sent Message is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future. |
||
107 | * @method message|responseError sendVideoNote (CURLFile|string|array|object $video_note, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, int|null $duration = null, int|null $length = null, CURLFile|string|object|null $thumbnail = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) As of v.4.0, Telegram clients support rounded square MPEG4 videos of up to 1 minute long. Use this method to send video messages. On success, the sent Message is returned. |
||
108 | * @method message|responseError videoNote (CURLFile|string|array|object $video_note, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, int|null $duration = null, int|null $length = null, CURLFile|string|object|null $thumbnail = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) As of v.4.0, Telegram clients support rounded square MPEG4 videos of up to 1 minute long. Use this method to send video messages. On success, the sent Message is returned. |
||
109 | * @method message[]|responseError sendMediaGroup (inputMedia[]|array $media, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send a group of photos, videos, documents or audios as an album. Documents and audio files can be only grouped in an album with messages of the same type. On success, an array of Messages that were sent is returned. |
||
110 | * @method message[]|responseError mediaGroup (inputMedia[]|array $media, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send a group of photos, videos, documents or audios as an album. Documents and audio files can be only grouped in an album with messages of the same type. On success, an array of Messages that were sent is returned. |
||
111 | * @method message[]|responseError media (inputMedia[]|array $media, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send a group of photos, videos, documents or audios as an album. Documents and audio files can be only grouped in an album with messages of the same type. On success, an array of Messages that were sent is returned. |
||
112 | * @method message|responseError sendLocation (float|array $latitude, float $longitude, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, float|null $horizontal_accuracy = null, int|null $live_period = null, int|null $heading = null, int|null $proximity_alert_radius = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send point on the map. On success, the sent Message is returned. |
||
113 | * @method message|responseError sendLoc (float|array $latitude, float $longitude, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, float|null $horizontal_accuracy = null, int|null $live_period = null, int|null $heading = null, int|null $proximity_alert_radius = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send point on the map. On success, the sent Message is returned. |
||
114 | * @method message|responseError location (float|array $latitude, float $longitude, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, float|null $horizontal_accuracy = null, int|null $live_period = null, int|null $heading = null, int|null $proximity_alert_radius = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send point on the map. On success, the sent Message is returned. |
||
115 | * @method message|responseError loc (float|array $latitude, float $longitude, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, float|null $horizontal_accuracy = null, int|null $live_period = null, int|null $heading = null, int|null $proximity_alert_radius = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send point on the map. On success, the sent Message is returned. |
||
116 | * @method message|responseError sendVenue (float|array $latitude, float $longitude, string $title, string $address, int|string|null $chat_id = null, int|null $message_thread_id = null, string|null $foursquare_id = null, string|null $foursquare_type = null, string|null $google_place_id = null, string|null $google_place_type = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send information about a venue. On success, the sent Message is returned. |
||
117 | * @method message|responseError venue (float|array $latitude, float $longitude, string $title, string $address, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, string|null $foursquare_id = null, string|null $foursquare_type = null, string|null $google_place_id = null, string|null $google_place_type = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send information about a venue. On success, the sent Message is returned. |
||
118 | * @method message|responseError sendContact (string|array $phone_number, string $first_name, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, string|null $last_name = null, string|null $vcard = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send phone contacts. On success, the sent Message is returned. |
||
119 | * @method message|responseError contact (string|array $phone_number, string $first_name, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, string|null $last_name = null, string|null $vcard = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send phone contacts. On success, the sent Message is returned. |
||
120 | * @method message|responseError sendPoll (string|array $question, inputPollOption[] $options, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, string|null $question_parse_mode = null, messageEntity[]|null $question_entities = null, bool|null $is_anonymous = null, string|null $type = null, bool|null $allows_multiple_answers = null, int|null $correct_option_id = null, string|null $explanation = null, string|null $explanation_parse_mode = null, messageEntity[]|null $explanation_entities = null, int|null $open_period = null, int|null $close_date = null, bool|null $is_closed = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send a native poll. On success, the sent Message is returned. |
||
121 | * @method message|responseError poll (string|array $question, inputPollOption[] $options, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, string|null $question_parse_mode = null, messageEntity[]|null $question_entities = null, bool|null $is_anonymous = null, string|null $type = null, bool|null $allows_multiple_answers = null, int|null $correct_option_id = null, string|null $explanation = null, string|null $explanation_parse_mode = null, messageEntity[]|null $explanation_entities = null, int|null $open_period = null, int|null $close_date = null, bool|null $is_closed = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send a native poll. On success, the sent Message is returned. |
||
122 | * @method message|responseError sendDice (int|string|array|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, string|null $emoji = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send an animated emoji that will display a random value. On success, the sent Message is returned. |
||
123 | * @method message|responseError dice (int|string|array|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, string|null $emoji = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send an animated emoji that will display a random value. On success, the sent Message is returned. |
||
124 | * @method bool|responseError sendChatAction (int|string|array|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, string|null $action = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status). Returns True on success.We only recommend using this method when a response from the bot will take a noticeable amount of time to arrive. |
||
125 | * @method bool|responseError chatAction (int|string|array|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, string|null $action = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status). Returns True on success.We only recommend using this method when a response from the bot will take a noticeable amount of time to arrive. |
||
126 | * @method bool|responseError action (int|string|array|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, string|null $action = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status). Returns True on success.We only recommend using this method when a response from the bot will take a noticeable amount of time to arrive. |
||
127 | * @method bool|responseError setMessageReaction (int|string|array|null $chat_id = null, int|null $message_id = null, reactionType[]|null $reaction = null, bool|null $is_big = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the chosen reactions on a message. Service messages can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. Returns True on success. |
||
128 | * @method bool|responseError setReaction (int|string|array|null $chat_id = null, int|null $message_id = null, reactionType[]|null $reaction = null, bool|null $is_big = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the chosen reactions on a message. Service messages can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. Returns True on success. |
||
129 | * @method bool|responseError reaction (int|string|array|null $chat_id = null, int|null $message_id = null, reactionType[]|null $reaction = null, bool|null $is_big = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the chosen reactions on a message. Service messages can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. Returns True on success. |
||
130 | * @method userProfilePhotos|responseError getUserProfilePhotos (int|array|null $user_id = null, int|null $offset = null, int|null $limit = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object. |
||
131 | * @method userProfilePhotos|responseError userPhotos (int|array|null $user_id = null, int|null $offset = null, int|null $limit = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object. |
||
132 | * @method file|responseError getFile (string|array|null $file_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get basic information about a file and prepare it for downloading. For the moment, bots can download files of up to 20MB in size. On success, a File object is returned. The file can then be downloaded via the link https://api.telegram.org/file/bot/, where is taken from the response. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile again. |
||
133 | * @method file|responseError file (string|array|null $file_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get basic information about a file and prepare it for downloading. For the moment, bots can download files of up to 20MB in size. On success, a File object is returned. The file can then be downloaded via the link https://api.telegram.org/file/bot/, where is taken from the response. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile again. |
||
134 | * @method bool|responseError banChatMember (int|string|array|null $chat_id = null, int|null $user_id = null, int|null $until_date = null, bool|null $revoke_messages = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to ban a user in a group, a supergroup or a channel. In the case of supergroups and channels, the user will not be able to return to the chat on their own using invite links, etc., unless unbanned first. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success. |
||
135 | * @method bool|responseError ban (int|string|array|null $chat_id = null, int|null $user_id = null, int|null $until_date = null, bool|null $revoke_messages = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to ban a user in a group, a supergroup or a channel. In the case of supergroups and channels, the user will not be able to return to the chat on their own using invite links, etc., unless unbanned first. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success. |
||
136 | * @method bool|responseError unbanChatMember (int|string|array|null $chat_id = null, int|null $user_id = null, bool|null $only_if_banned = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to unban a previously banned user in a supergroup or channel. The user will not return to the group or channel automatically, but will be able to join via link, etc. The bot must be an administrator for this to work. By default, this method guarantees that after the call the user is not a member of the chat, but will be able to join it. So if the user is a member of the chat they will also be removed from the chat. If you don't want this, use the parameter only_if_banned. Returns True on success. |
||
137 | * @method bool|responseError kick (int|string|array|null $chat_id = null, int|null $user_id = null, bool|null $only_if_banned = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to unban a previously banned user in a supergroup or channel. The user will not return to the group or channel automatically, but will be able to join via link, etc. The bot must be an administrator for this to work. By default, this method guarantees that after the call the user is not a member of the chat, but will be able to join it. So if the user is a member of the chat they will also be removed from the chat. If you don't want this, use the parameter only_if_banned. Returns True on success. |
||
138 | * @method bool|responseError unban (int|string|array|null $chat_id = null, int|null $user_id = null, bool|null $only_if_banned = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to unban a previously banned user in a supergroup or channel. The user will not return to the group or channel automatically, but will be able to join via link, etc. The bot must be an administrator for this to work. By default, this method guarantees that after the call the user is not a member of the chat, but will be able to join it. So if the user is a member of the chat they will also be removed from the chat. If you don't want this, use the parameter only_if_banned. Returns True on success. |
||
139 | * @method bool|responseError restrictChatMember (chatPermissions|array|object $permissions, int|string|null $chat_id = null, int|null $user_id = null, bool|null $use_independent_chat_permissions = null, int|null $until_date = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to restrict a user in a supergroup. The bot must be an administrator in the supergroup for this to work and must have the appropriate administrator rights. Pass True for all permissions to lift restrictions from a user. Returns True on success. |
||
140 | * @method bool|responseError restrict (chatPermissions|array|object $permissions, int|string|null $chat_id = null, int|null $user_id = null, bool|null $use_independent_chat_permissions = null, int|null $until_date = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to restrict a user in a supergroup. The bot must be an administrator in the supergroup for this to work and must have the appropriate administrator rights. Pass True for all permissions to lift restrictions from a user. Returns True on success. |
||
141 | * @method bool|responseError promoteChatMember (int|string|array|null $chat_id = null, int|null $user_id = null, bool|null $is_anonymous = null, bool|null $can_manage_chat = null, bool|null $can_delete_messages = null, bool|null $can_manage_video_chats = null, bool|null $can_restrict_members = null, bool|null $can_promote_members = null, bool|null $can_change_info = null, bool|null $can_invite_users = null, bool|null $can_post_stories = null, bool|null $can_edit_stories = null, bool|null $can_delete_stories = null, bool|null $can_post_messages = null, bool|null $can_edit_messages = null, bool|null $can_pin_messages = null, bool|null $can_manage_topics = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to promote or demote a user in a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Pass False for all boolean parameters to demote a user. Returns True on success. |
||
142 | * @method bool|responseError promote (int|string|array|null $chat_id = null, int|null $user_id = null, bool|null $is_anonymous = null, bool|null $can_manage_chat = null, bool|null $can_delete_messages = null, bool|null $can_manage_video_chats = null, bool|null $can_restrict_members = null, bool|null $can_promote_members = null, bool|null $can_change_info = null, bool|null $can_invite_users = null, bool|null $can_post_stories = null, bool|null $can_edit_stories = null, bool|null $can_delete_stories = null, bool|null $can_post_messages = null, bool|null $can_edit_messages = null, bool|null $can_pin_messages = null, bool|null $can_manage_topics = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to promote or demote a user in a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Pass False for all boolean parameters to demote a user. Returns True on success. |
||
143 | * @method bool|responseError setChatAdministratorCustomTitle (string|array $custom_title, int|string|null $chat_id = null, int|null $user_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success. |
||
144 | * @method bool|responseError setCustomTitle (string|array $custom_title, int|string|null $chat_id = null, int|null $user_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success. |
||
145 | * @method bool|responseError banChatSenderChat (int|array $sender_chat_id, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to ban a channel chat in a supergroup or a channel. Until the chat is unbanned, the owner of the banned chat won't be able to send messages on behalf of any of their channels. The bot must be an administrator in the supergroup or channel for this to work and must have the appropriate administrator rights. Returns True on success. |
||
146 | * @method bool|responseError banSender (int|array $sender_chat_id, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to ban a channel chat in a supergroup or a channel. Until the chat is unbanned, the owner of the banned chat won't be able to send messages on behalf of any of their channels. The bot must be an administrator in the supergroup or channel for this to work and must have the appropriate administrator rights. Returns True on success. |
||
147 | * @method bool|responseError unbanChatSenderChat (int|array $sender_chat_id, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to unban a previously banned channel chat in a supergroup or channel. The bot must be an administrator for this to work and must have the appropriate administrator rights. Returns True on success. |
||
148 | * @method bool|responseError unbanSender (int|array $sender_chat_id, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to unban a previously banned channel chat in a supergroup or channel. The bot must be an administrator for this to work and must have the appropriate administrator rights. Returns True on success. |
||
149 | * @method bool|responseError setChatPermissions (chatPermissions|array|object $permissions, int|string|null $chat_id = null, bool|null $use_independent_chat_permissions = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to set default chat permissions for all members. The bot must be an administrator in the group or a supergroup for this to work and must have the can_restrict_members administrator rights. Returns True on success. |
||
150 | * @method bool|responseError permissions (chatPermissions|array|object $permissions, int|string|null $chat_id = null, bool|null $use_independent_chat_permissions = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to set default chat permissions for all members. The bot must be an administrator in the group or a supergroup for this to work and must have the can_restrict_members administrator rights. Returns True on success. |
||
151 | * @method string|responseError exportChatInviteLink (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to generate a new primary invite link for a chat; any previously generated primary link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the new invite link as String on success. |
||
152 | * @method string|responseError link (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to generate a new primary invite link for a chat; any previously generated primary link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the new invite link as String on success. |
||
153 | * @method chatInviteLink|responseError createChatInviteLink (int|string|array|null $chat_id = null, string|null $name = null, int|null $expire_date = null, int|null $member_limit = null, bool|null $creates_join_request = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to create an additional invite link for a chat. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. The link can be revoked using the method revokeChatInviteLink. Returns the new invite link as ChatInviteLink object. |
||
154 | * @method chatInviteLink|responseError crLink (int|string|array|null $chat_id = null, string|null $name = null, int|null $expire_date = null, int|null $member_limit = null, bool|null $creates_join_request = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to create an additional invite link for a chat. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. The link can be revoked using the method revokeChatInviteLink. Returns the new invite link as ChatInviteLink object. |
||
155 | * @method chatInviteLink|responseError editChatInviteLink (string|array $invite_link, int|string|null $chat_id = null, string|null $name = null, int|null $expire_date = null, int|null $member_limit = null, bool|null $creates_join_request = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to edit a non-primary invite link created by the bot. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the edited invite link as a ChatInviteLink object. |
||
156 | * @method chatInviteLink|responseError edLink (string|array $invite_link, int|string|null $chat_id = null, string|null $name = null, int|null $expire_date = null, int|null $member_limit = null, bool|null $creates_join_request = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to edit a non-primary invite link created by the bot. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the edited invite link as a ChatInviteLink object. |
||
157 | * @method chatInviteLink|responseError revokeChatInviteLink (string|array $invite_link, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to revoke an invite link created by the bot. If the primary link is revoked, a new link is automatically generated. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the revoked invite link as ChatInviteLink object. |
||
158 | * @method chatInviteLink|responseError reLink (string|array $invite_link, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to revoke an invite link created by the bot. If the primary link is revoked, a new link is automatically generated. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the revoked invite link as ChatInviteLink object. |
||
159 | * @method bool|responseError approveChatJoinRequest (int|string|array|null $chat_id = null, int|null $user_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to approve a chat join request. The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right. Returns True on success. |
||
160 | * @method bool|responseError acceptJoin (int|string|array|null $chat_id = null, int|null $user_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to approve a chat join request. The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right. Returns True on success. |
||
161 | * @method bool|responseError declineChatJoinRequest (int|string|array|null $chat_id = null, int|null $user_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to decline a chat join request. The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right. Returns True on success. |
||
162 | * @method bool|responseError denyJoin (int|string|array|null $chat_id = null, int|null $user_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to decline a chat join request. The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right. Returns True on success. |
||
163 | * @method bool|responseError setChatPhoto (CURLFile|array|object $photo, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to set a new profile photo for the chat. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success. |
||
164 | * @method bool|responseError deleteChatPhoto (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to delete a chat photo. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success. |
||
165 | * @method bool|responseError setChatTitle (string|array $title, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the title of a chat. Titles can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success. |
||
166 | * @method bool|responseError title (string|array $title, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the title of a chat. Titles can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success. |
||
167 | * @method bool|responseError setChatDescription (int|string|array|null $chat_id = null, string|null $description = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the description of a group, a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success. |
||
168 | * @method bool|responseError description (int|string|array|null $chat_id = null, string|null $description = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the description of a group, a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success. |
||
169 | * @method bool|responseError pinChatMessage (int|string|array|null $chat_id = null, int|null $message_id = null, bool|null $disable_notification = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to add a message to the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success. |
||
170 | * @method bool|responseError pin (int|string|array|null $chat_id = null, int|null $message_id = null, bool|null $disable_notification = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to add a message to the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success. |
||
171 | * @method bool|responseError unpinChatMessage (int|string|array|null $chat_id = null, int|null $message_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to remove a message from the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success. |
||
172 | * @method bool|responseError unpin (int|string|array|null $chat_id = null, int|null $message_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to remove a message from the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success. |
||
173 | * @method bool|responseError unpinAllChatMessages (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to clear the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success. |
||
174 | * @method bool|responseError unpinAll (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to clear the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success. |
||
175 | * @method bool|responseError leaveChat (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method for your bot to leave a group, supergroup or channel. Returns True on success. |
||
176 | * @method bool|responseError leave (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method for your bot to leave a group, supergroup or channel. Returns True on success. |
||
177 | * @method chatFullInfo|responseError getChat (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get up-to-date information about the chat. Returns a ChatFullInfo object on success. |
||
178 | * @method chatFullInfo|responseError chat (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get up-to-date information about the chat. Returns a ChatFullInfo object on success. |
||
179 | * @method chatMember[]|responseError getChatAdministrators (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get a list of administrators in a chat, which aren't bots. Returns an Array of ChatMember objects. |
||
180 | * @method chatMember[]|responseError admins (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get a list of administrators in a chat, which aren't bots. Returns an Array of ChatMember objects. |
||
181 | * @method int|responseError getChatMemberCount (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get the number of members in a chat. Returns Int on success. |
||
182 | * @method int|responseError getChatMembersCount (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get the number of members in a chat. Returns Int on success. |
||
183 | * @method int|responseError membersCount (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get the number of members in a chat. Returns Int on success. |
||
184 | * @method chatMember|responseError getChatMember (int|string|array|null $chat_id = null, int|null $user_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get information about a member of a chat. The method is only guaranteed to work for other users if the bot is an administrator in the chat. Returns a ChatMember object on success. |
||
185 | * @method chatMember|responseError member (int|string|array|null $chat_id = null, int|null $user_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get information about a member of a chat. The method is only guaranteed to work for other users if the bot is an administrator in the chat. Returns a ChatMember object on success. |
||
186 | * @method bool|responseError setChatStickerSet (string|array $sticker_set_name, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to set a new group sticker set for a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Use the field can_set_sticker_set optionally returned in getChat requests to check if the bot can use this method. Returns True on success. |
||
187 | * @method bool|responseError setSticker (string|array $sticker_set_name, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to set a new group sticker set for a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Use the field can_set_sticker_set optionally returned in getChat requests to check if the bot can use this method. Returns True on success. |
||
188 | * @method bool|responseError deleteChatStickerSet (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to delete a group sticker set from a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Use the field can_set_sticker_set optionally returned in getChat requests to check if the bot can use this method. Returns True on success. |
||
189 | * @method bool|responseError delSticker (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to delete a group sticker set from a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Use the field can_set_sticker_set optionally returned in getChat requests to check if the bot can use this method. Returns True on success. |
||
190 | * @method sticker[]|responseError getForumTopicIconStickers (string|array|null $token = null, bool|null $forgot = null, bool|null $answer = null) 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. |
||
191 | * @method sticker[]|responseError getTopicStickers (string|array|null $token = null, bool|null $forgot = null, bool|null $answer = null) 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. |
||
192 | * @method forumTopic|responseError createForumTopic (string|array $name, int|string|null $chat_id = null, int|null $icon_color = null, string|null $icon_custom_emoji_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) 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. |
||
193 | * @method forumTopic|responseError createTopic (string|array $name, int|string|null $chat_id = null, int|null $icon_color = null, string|null $icon_custom_emoji_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) 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. |
||
194 | * @method bool|responseError editForumTopic (int|array $message_thread_id, int|string|null $chat_id = null, string|null $name = null, string|null $icon_custom_emoji_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) 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. |
||
195 | * @method bool|responseError editTopic (int|array $message_thread_id, int|string|null $chat_id = null, string|null $name = null, string|null $icon_custom_emoji_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) 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. |
||
196 | * @method bool|responseError closeForumTopic (int|array $message_thread_id, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) 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. |
||
197 | * @method bool|responseError closeTopic (int|array $message_thread_id, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) 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. |
||
198 | * @method bool|responseError reopenForumTopic (int|array $message_thread_id, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) 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. |
||
199 | * @method bool|responseError reopenTopic (int|array $message_thread_id, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) 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. |
||
200 | * @method bool|responseError deleteForumTopic (int|array $message_thread_id, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) 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. |
||
201 | * @method bool|responseError deleteTopic (int|array $message_thread_id, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) 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. |
||
202 | * @method bool|responseError unpinAllForumTopicMessages (int|array $message_thread_id, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) 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. |
||
203 | * @method bool|responseError unpinAllTopicMessages (int|array $message_thread_id, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) 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. |
||
204 | * @method bool|responseError unpinTopicMessages (int|array $message_thread_id, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) 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. |
||
205 | * @method bool|responseError editGeneralForumTopic (string|array $name, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to edit the name of the 'General' 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. Returns True on success. |
||
206 | * @method bool|responseError editGeneralTopic (string|array $name, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to edit the name of the 'General' 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. Returns True on success. |
||
207 | * @method bool|responseError closeGeneralForumTopic (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to close an open 'General' 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 True on success. |
||
208 | * @method bool|responseError closeGeneralTopic (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to close an open 'General' 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 True on success. |
||
209 | * @method bool|responseError reopenGeneralForumTopic (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to reopen a closed 'General' 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. The topic will be automatically unhidden if it was hidden. Returns True on success. |
||
210 | * @method bool|responseError reopenGeneralTopic (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to reopen a closed 'General' 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. The topic will be automatically unhidden if it was hidden. Returns True on success. |
||
211 | * @method bool|responseError hideGeneralForumTopic (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to hide the 'General' 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. The topic will be automatically closed if it was open. Returns True on success. |
||
212 | * @method bool|responseError hideGeneralTopic (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to hide the 'General' 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. The topic will be automatically closed if it was open. Returns True on success. |
||
213 | * @method bool|responseError unhideGeneralForumTopic (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to unhide the 'General' 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 True on success. |
||
214 | * @method bool|responseError unhideGeneralTopic (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to unhide the 'General' 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 True on success. |
||
215 | * @method bool|responseError unpinAllGeneralForumTopicMessages (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to clear the list of pinned messages in a General 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. |
||
216 | * @method bool|responseError unpinAllGeneralTopicMessages (int|string|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to clear the list of pinned messages in a General 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. |
||
217 | * @method bool|responseError answerCallbackQuery (string|array|null $callback_query_id = null, string|null $text = null, bool|null $show_alert = null, string|null $url = null, int|null $cache_time = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) 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. |
||
218 | * @method bool|responseError answer (string|array|null $callback_query_id = null, string|null $text = null, bool|null $show_alert = null, string|null $url = null, int|null $cache_time = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) 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. |
||
219 | * @method userChatBoosts|responseError getUserChatBoosts (int|string|array|null $chat_id = null, int|null $user_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get the list of boosts added to a chat by a user. Requires administrator rights in the chat. Returns a UserChatBoosts object. |
||
220 | * @method userChatBoosts|responseError chatBoosts (int|string|array|null $chat_id = null, int|null $user_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get the list of boosts added to a chat by a user. Requires administrator rights in the chat. Returns a UserChatBoosts object. |
||
221 | * @method businessConnection|responseError getBusinessConnection (string|array $business_connection_id, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get information about the connection of the bot with a business account. Returns a BusinessConnection object on success. |
||
222 | * @method businessConnection|responseError getBusiness (string|array $business_connection_id, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get information about the connection of the bot with a business account. Returns a BusinessConnection object on success. |
||
223 | * @method bool|responseError setMyCommands (botCommand[]|array $commands, botCommandScope|object|array|null $scope = null, string|null $language_code = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the list of the bot's commands. See this manual for more details about bot commands. Returns True on success. |
||
224 | * @method bool|responseError setCommands (botCommand[]|array $commands, botCommandScope|object|array|null $scope = null, string|null $language_code = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the list of the bot's commands. See this manual for more details about bot commands. Returns True on success. |
||
225 | * @method bool|responseError deleteMyCommands (botCommandScope|array|object|null $scope = null, string|null $language_code = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to delete the list of the bot's commands for the given scope and user language. After deletion, higher level commands will be shown to affected users. Returns True on success. |
||
226 | * @method bool|responseError deleteCommands (botCommandScope|array|object|null $scope = null, string|null $language_code = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to delete the list of the bot's commands for the given scope and user language. After deletion, higher level commands will be shown to affected users. Returns True on success. |
||
227 | * @method botCommand[]|responseError getMyCommands (botCommandScope|array|object|null $scope = null, string|null $language_code = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get the current list of the bot's commands for the given scope and user language. Returns an Array of BotCommand objects. If commands aren't set, an empty list is returned. |
||
228 | * @method botCommand[]|responseError getCommands (botCommandScope|array|object|null $scope = null, string|null $language_code = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get the current list of the bot's commands for the given scope and user language. Returns an Array of BotCommand objects. If commands aren't set, an empty list is returned. |
||
229 | * @method bool|responseError setMyName (string|array|null $name = null, string|null $language_code = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the bot's name. Returns True on success. |
||
230 | * @method bool|responseError setName (string|array|null $name = null, string|null $language_code = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the bot's name. Returns True on success. |
||
231 | * @method botName|responseError getMyName (string|array|null $language_code = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get the current bot name for the given user language. Returns BotName on success. |
||
232 | * @method botName|responseError getName (string|array|null $language_code = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get the current bot name for the given user language. Returns BotName on success. |
||
233 | * @method bool|responseError setMyDescription (string|array|null $description = null, string|null $language_code = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the bot's description, which is shown in the chat with the bot if the chat is empty. Returns True on success. |
||
234 | * @method bool|responseError setDescription (string|array|null $description = null, string|null $language_code = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the bot's description, which is shown in the chat with the bot if the chat is empty. Returns True on success. |
||
235 | * @method botDescription|responseError getMyDescription (string|array|null $language_code = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get the current bot description for the given user language. Returns BotDescription on success. |
||
236 | * @method botDescription|responseError getDescription (string|array|null $language_code = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get the current bot description for the given user language. Returns BotDescription on success. |
||
237 | * @method bool|responseError setMyShortDescription (string|array|null $short_description = null, string|null $language_code = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the bot's short description, which is shown on the bot's profile page and is sent together with the link when users share the bot. Returns True on success. |
||
238 | * @method bool|responseError setShortDescription (string|array|null $short_description = null, string|null $language_code = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the bot's short description, which is shown on the bot's profile page and is sent together with the link when users share the bot. Returns True on success. |
||
239 | * @method botShortDescription|responseError getMyShortDescription (string|array|null $language_code = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get the current bot short description for the given user language. Returns BotShortDescription on success. |
||
240 | * @method botShortDescription|responseError getShortDescription (string|array|null $language_code = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get the current bot short description for the given user language. Returns BotShortDescription on success. |
||
241 | * @method bool|responseError setChatMenuButton (int|array|null $chat_id = null, menuButton|object|array|null $menu_button = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the bot's menu button in a private chat, or the default menu button. Returns True on success. |
||
242 | * @method bool|responseError setMenuButton (int|array|null $chat_id = null, menuButton|object|array|null $menu_button = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the bot's menu button in a private chat, or the default menu button. Returns True on success. |
||
243 | * @method bool|responseError setMenu (int|array|null $chat_id = null, menuButton|object|array|null $menu_button = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the bot's menu button in a private chat, or the default menu button. Returns True on success. |
||
244 | * @method bool|responseError setButton (int|array|null $chat_id = null, menuButton|object|array|null $menu_button = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the bot's menu button in a private chat, or the default menu button. Returns True on success. |
||
245 | * @method menuButton|responseError getChatMenuButton (int|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get the current value of the bot's menu button in a private chat, or the default menu button. Returns MenuButton on success. |
||
246 | * @method menuButton|responseError getMenuButton (int|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get the current value of the bot's menu button in a private chat, or the default menu button. Returns MenuButton on success. |
||
247 | * @method menuButton|responseError getMenu (int|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get the current value of the bot's menu button in a private chat, or the default menu button. Returns MenuButton on success. |
||
248 | * @method menuButton|responseError getButton (int|array|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get the current value of the bot's menu button in a private chat, or the default menu button. Returns MenuButton on success. |
||
249 | * @method bool|responseError setMyDefaultAdministratorRights (chatAdministratorRights|array|object|null $rights = null, bool|null $for_channels = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the default administrator rights requested by the bot when it's added as an administrator to groups or channels. These rights will be suggested to users, but they are free to modify the list before adding the bot. Returns True on success. |
||
250 | * @method bool|responseError setMyDefaultAdminRights (chatAdministratorRights|array|object|null $rights = null, bool|null $for_channels = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the default administrator rights requested by the bot when it's added as an administrator to groups or channels. These rights will be suggested to users, but they are free to modify the list before adding the bot. Returns True on success. |
||
251 | * @method bool|responseError setMyDefaultRights (chatAdministratorRights|array|object|null $rights = null, bool|null $for_channels = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the default administrator rights requested by the bot when it's added as an administrator to groups or channels. These rights will be suggested to users, but they are free to modify the list before adding the bot. Returns True on success. |
||
252 | * @method bool|responseError setDefaultRights (chatAdministratorRights|array|object|null $rights = null, bool|null $for_channels = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the default administrator rights requested by the bot when it's added as an administrator to groups or channels. These rights will be suggested to users, but they are free to modify the list before adding the bot. Returns True on success. |
||
253 | * @method chatAdministratorRights|responseError getMyDefaultAdministratorRights (bool|array|null $for_channels = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get the current default administrator rights of the bot. Returns ChatAdministratorRights on success. |
||
254 | * @method chatAdministratorRights|responseError getMyDefaultAdminRights (bool|array|null $for_channels = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get the current default administrator rights of the bot. Returns ChatAdministratorRights on success. |
||
255 | * @method chatAdministratorRights|responseError getMyDefaultRights (bool|array|null $for_channels = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get the current default administrator rights of the bot. Returns ChatAdministratorRights on success. |
||
256 | * @method chatAdministratorRights|responseError getDefaultRights (bool|array|null $for_channels = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get the current default administrator rights of the bot. Returns ChatAdministratorRights on success. |
||
257 | * @method message|bool|responseError editMessageText (string|array $text, int|string|null $chat_id = null, int|null $message_id = null, string|null $inline_message_id = null, string|null $parse_mode = null, messageEntity[]|null $entities = null, linkPreviewOptions|object|array|null $link_preview_options = null, inlineKeyboardMarkup|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to edit text and game messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. |
||
258 | * @method message|bool|responseError editText (string|array $text, int|string|null $chat_id = null, int|null $message_id = null, string|null $inline_message_id = null, string|null $parse_mode = null, messageEntity[]|null $entities = null, linkPreviewOptions|object|array|null $link_preview_options = null, inlineKeyboardMarkup|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to edit text and game messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. |
||
259 | * @method message|bool|responseError editMessageCaption (int|string|array|null $chat_id = null, int|null $message_id = null, string|null $inline_message_id = null, string|null $caption = null, string|null $parse_mode = null, messageEntity[]|null $caption_entities = null, bool|null $show_caption_above_media = null, inlineKeyboardMarkup|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to edit captions of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. |
||
260 | * @method message|bool|responseError editCap (int|string|array|null $chat_id = null, int|null $message_id = null, string|null $inline_message_id = null, string|null $caption = null, string|null $parse_mode = null, messageEntity[]|null $caption_entities = null, bool|null $show_caption_above_media = null, inlineKeyboardMarkup|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to edit captions of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. |
||
261 | * @method message|bool|responseError editCaption (int|string|array|null $chat_id = null, int|null $message_id = null, string|null $inline_message_id = null, string|null $caption = null, string|null $parse_mode = null, messageEntity[]|null $caption_entities = null, bool|null $show_caption_above_media = null, inlineKeyboardMarkup|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to edit captions of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. |
||
262 | * @method message|bool|responseError editMessageMedia (inputMedia|array|object $media, int|string|null $chat_id = null, int|null $message_id = null, string|null $inline_message_id = null, inlineKeyboardMarkup|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to edit animation, audio, document, photo, or video messages. If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise. When an inline message is edited, a new file can't be uploaded; use a previously uploaded file via its file_id or specify a URL. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. |
||
263 | * @method message|bool|responseError editMedia (inputMedia|array|object $media, int|string|null $chat_id = null, int|null $message_id = null, string|null $inline_message_id = null, inlineKeyboardMarkup|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to edit animation, audio, document, photo, or video messages. If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise. When an inline message is edited, a new file can't be uploaded; use a previously uploaded file via its file_id or specify a URL. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. |
||
264 | * @method message|bool|responseError editMessageLiveLocation (float|array $latitude, float $longitude, int|string|null $chat_id = null, int|null $message_id = null, string|null $inline_message_id = null, int|null $live_period = null, float|null $horizontal_accuracy = null, int|null $heading = null, int|null $proximity_alert_radius = null, inlineKeyboardMarkup|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to edit live location messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. |
||
265 | * @method message|bool|responseError editLiveLoc (float|array $latitude, float $longitude, int|string|null $chat_id = null, int|null $message_id = null, string|null $inline_message_id = null, int|null $live_period = null, float|null $horizontal_accuracy = null, int|null $heading = null, int|null $proximity_alert_radius = null, inlineKeyboardMarkup|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to edit live location messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. |
||
266 | * @method message|bool|responseError stopMessageLiveLocation (int|string|array|null $chat_id = null, int|null $message_id = null, string|null $inline_message_id = null, inlineKeyboardMarkup|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to stop updating a live location message before live_period expires. On success, if the message is not an inline message, the edited Message is returned, otherwise True is returned. |
||
267 | * @method message|bool|responseError stopLiveLoc (int|string|array|null $chat_id = null, int|null $message_id = null, string|null $inline_message_id = null, inlineKeyboardMarkup|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to stop updating a live location message before live_period expires. On success, if the message is not an inline message, the edited Message is returned, otherwise True is returned. |
||
268 | * @method message|bool|responseError editMessageReplyMarkup (int|string|array|null $chat_id = null, int|null $message_id = null, string|null $inline_message_id = null, inlineKeyboardMarkup|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to edit only the reply markup of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. |
||
269 | * @method message|bool|responseError editReply (int|string|array|null $chat_id = null, int|null $message_id = null, string|null $inline_message_id = null, inlineKeyboardMarkup|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to edit only the reply markup of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. |
||
270 | * @method message|bool|responseError editKeyboard (int|string|array|null $chat_id = null, int|null $message_id = null, string|null $inline_message_id = null, inlineKeyboardMarkup|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to edit only the reply markup of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. |
||
271 | * @method poll|responseError stopPoll (int|string|array|null $chat_id = null, int|null $message_id = null, inlineKeyboardMarkup|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned. |
||
272 | * @method bool|responseError deleteMessage (int|string|array|null $chat_id = null, int|null $message_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) 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. |
||
273 | * @method bool|responseError del (int|string|array|null $chat_id = null, int|null $message_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) 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. |
||
274 | * @method bool|responseError deleteMessages (int[]|array $message_ids, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to delete multiple messages simultaneously. If some of the specified messages can't be found, they are skipped. Returns True on success. |
||
275 | * @method bool|responseError dels (int[]|array $message_ids, int|string|null $chat_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to delete multiple messages simultaneously. If some of the specified messages can't be found, they are skipped. Returns True on success. |
||
276 | * @method message|responseError sendSticker (CURLFile|string|array|object $sticker, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, string|null $emoji = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send stable .WEBP, animated .TGS, or video .WEBM stickers. On success, the sent Message is returned. |
||
277 | * @method message|responseError sticker (CURLFile|string|array|object $sticker, int|string|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, string|null $emoji = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|replyKeyboardMarkup|replyKeyboardRemove|forceReply|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send stable .WEBP, animated .TGS, or video .WEBM stickers. On success, the sent Message is returned. |
||
278 | * @method stickerSet|responseError getStickerSet (string|array $name, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get a sticker set. On success, a StickerSet object is returned. |
||
279 | * @method sticker[]|responseError getCustomEmojiStickers (string[]|array $custom_emoji_ids, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get information about custom emoji stickers by their identifiers. Returns an Array of Sticker objects. |
||
280 | * @method file|responseError uploadStickerFile (CURLFile|array|object $sticker, string $sticker_format, int|null $user_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to upload a file with a sticker for later use in the createNewStickerSet, addStickerToSet, or replaceStickerInSet methods (the file can be used multiple times). Returns the uploaded File on success. |
||
281 | * @method file|responseError uploadSticker (CURLFile|array|object $sticker, string $sticker_format, int|null $user_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to upload a file with a sticker for later use in the createNewStickerSet, addStickerToSet, or replaceStickerInSet methods (the file can be used multiple times). Returns the uploaded File on success. |
||
282 | * @method bool|responseError createNewStickerSet (string|array $name, string $title, inputSticker[] $stickers, int|null $user_id = null, string|null $sticker_type = null, bool|null $needs_repainting = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. Returns True on success. |
||
283 | * @method bool|responseError createSticker (string|array $name, string $title, inputSticker[] $stickers, int|null $user_id = null, string|null $sticker_type = null, bool|null $needs_repainting = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. Returns True on success. |
||
284 | * @method bool|responseError addStickerToSet (string|array $name, inputSticker|object|array $sticker, int|null $user_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to add a new sticker to a set created by the bot. Emoji sticker sets can have up to 200 stickers. Other sticker sets can have up to 120 stickers. Returns True on success. |
||
285 | * @method bool|responseError addSticker (string|array $name, inputSticker|object|array $sticker, int|null $user_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to add a new sticker to a set created by the bot. Emoji sticker sets can have up to 200 stickers. Other sticker sets can have up to 120 stickers. Returns True on success. |
||
286 | * @method bool|responseError setStickerPositionInSet (string|array $sticker, int $position, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to move a sticker in a set created by the bot to a specific position. Returns True on success. |
||
287 | * @method bool|responseError setStickerPosition (string|array $sticker, int $position, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to move a sticker in a set created by the bot to a specific position. Returns True on success. |
||
288 | * @method bool|responseError setStickerPos (string|array $sticker, int $position, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to move a sticker in a set created by the bot to a specific position. Returns True on success. |
||
289 | * @method bool|responseError deleteStickerFromSet (string|array $sticker, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to delete a sticker from a set created by the bot. Returns True on success. |
||
290 | * @method bool|responseError deleteSticker (string|array $sticker, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to delete a sticker from a set created by the bot. Returns True on success. |
||
291 | * @method bool|responseError replaceStickerInSet (string|array $name, string $old_sticker, inputSticker|object|array $sticker, int|null $user_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to replace an existing sticker in a sticker set with a new one. The method is equivalent to calling deleteStickerFromSet, then addStickerToSet, then setStickerPositionInSet. Returns True on success. |
||
292 | * @method bool|responseError replaceSticker (string|array $name, string $old_sticker, inputSticker|object|array $sticker, int|null $user_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to replace an existing sticker in a sticker set with a new one. The method is equivalent to calling deleteStickerFromSet, then addStickerToSet, then setStickerPositionInSet. Returns True on success. |
||
293 | * @method bool|responseError setStickerEmojiList (string|array $sticker, string[] $emoji_list, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the list of emoji assigned to a regular or custom emoji sticker. The sticker must belong to a sticker set created by the bot. Returns True on success. |
||
294 | * @method bool|responseError setStickerKeywords (string|array $sticker, string[]|null $keywords = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change search keywords assigned to a regular or custom emoji sticker. The sticker must belong to a sticker set created by the bot. Returns True on success. |
||
295 | * @method bool|responseError setStickerMaskPosition (string|array $sticker, maskPosition|object|array|null $mask_position = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to change the mask position of a mask sticker. The sticker must belong to a sticker set that was created by the bot. Returns True on success. |
||
296 | * @method bool|responseError setStickerSetTitle (string|array $name, string $title, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to set the title of a created sticker set. Returns True on success. |
||
297 | * @method bool|responseError setStickerSetThumb (string|array $name, string $format, int|null $user_id = null, string|null $business_connection_id = null, CURLFile|string|object|null $thumbnail = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to set the thumbnail of a regular or mask sticker set. The format of the thumbnail file must be same with the format of the stickers in the set. Returns True on success. |
||
298 | * @method bool|responseError setStickerThumb (string|array $name, string $format, int|null $user_id = null, string|null $business_connection_id = null, CURLFile|string|object|null $thumbnail = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to set the thumbnail of a regular or mask sticker set. The format of the thumbnail file must be same with the format of the stickers in the set. Returns True on success. |
||
299 | * @method bool|responseError setCustomEmojiStickerSetThumbnail (string|array $name, string|null $custom_emoji_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to set the thumbnail of a custom emoji sticker set. Returns True on success. |
||
300 | * @method bool|responseError deleteStickerSet (string|array $name, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to delete a sticker set that was created by the bot. Returns True on success. |
||
301 | * @method bool|responseError answerInlineQuery (inlineQueryResult[]|array $results, string|null $inline_query_id = null, int|null $cache_time = null, bool|null $is_personal = null, string|null $next_offset = null, inlineQueryResultsButton|object|array|null $button = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to send answers to an inline query. On success, True is returned.No more than 50 results per query are allowed. |
||
302 | * @method bool|responseError answerInline (inlineQueryResult[]|array $results, string|null $inline_query_id = null, int|null $cache_time = null, bool|null $is_personal = null, string|null $next_offset = null, inlineQueryResultsButton|object|array|null $button = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to send answers to an inline query. On success, True is returned.No more than 50 results per query are allowed. |
||
303 | * @method sentWebAppMessage|responseError answerWebAppQuery (string|array $web_app_query_id, inlineQueryResult|object|array $result, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to set the result of an interaction with a Web App and send a corresponding message on behalf of the user to the chat from which the query originated. On success, a SentWebAppMessage object is returned. |
||
304 | * @method sentWebAppMessage|responseError answerWebApp (string|array $web_app_query_id, inlineQueryResult|object|array $result, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to set the result of an interaction with a Web App and send a corresponding message on behalf of the user to the chat from which the query originated. On success, a SentWebAppMessage object is returned. |
||
305 | * @method sentWebAppMessage|responseError answerWeb (string|array $web_app_query_id, inlineQueryResult|object|array $result, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to set the result of an interaction with a Web App and send a corresponding message on behalf of the user to the chat from which the query originated. On success, a SentWebAppMessage object is returned. |
||
306 | * @method message|responseError sendInvoice (string|array $title, string $description, string $payload, string $currency, labeledPrice[] $prices, int|string|null $chat_id = null, int|null $message_thread_id = null, string|null $provider_token = null, int|null $max_tip_amount = null, int[]|null $suggested_tip_amounts = null, string|null $start_parameter = null, string|null $provider_data = null, string|null $photo_url = null, int|null $photo_size = null, int|null $photo_width = null, int|null $photo_height = null, bool|null $need_name = null, bool|null $need_phone_number = null, bool|null $need_email = null, bool|null $need_shipping_address = null, bool|null $send_phone_number_to_provider = null, bool|null $send_email_to_provider = null, bool|null $is_flexible = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send invoices. On success, the sent Message is returned. |
||
307 | * @method message|responseError invoice (string|array $title, string $description, string $payload, string $currency, labeledPrice[] $prices, int|string|null $chat_id = null, int|null $message_thread_id = null, string|null $provider_token = null, int|null $max_tip_amount = null, int[]|null $suggested_tip_amounts = null, string|null $start_parameter = null, string|null $provider_data = null, string|null $photo_url = null, int|null $photo_size = null, int|null $photo_width = null, int|null $photo_height = null, bool|null $need_name = null, bool|null $need_phone_number = null, bool|null $need_email = null, bool|null $need_shipping_address = null, bool|null $send_phone_number_to_provider = null, bool|null $send_email_to_provider = null, bool|null $is_flexible = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send invoices. On success, the sent Message is returned. |
||
308 | * @method string|responseError createInvoiceLink (string|array $title, string $description, string $payload, string $currency, labeledPrice[] $prices, string|null $provider_token = null, int|null $max_tip_amount = null, int[]|null $suggested_tip_amounts = null, string|null $provider_data = null, string|null $photo_url = null, int|null $photo_size = null, int|null $photo_width = null, int|null $photo_height = null, bool|null $need_name = null, bool|null $need_phone_number = null, bool|null $need_email = null, bool|null $need_shipping_address = null, bool|null $send_phone_number_to_provider = null, bool|null $send_email_to_provider = null, bool|null $is_flexible = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to create a link for an invoice. Returns the created invoice link as String on success. |
||
309 | * @method string|responseError createInvoice (string|array $title, string $description, string $payload, string $currency, labeledPrice[] $prices, string|null $provider_token = null, int|null $max_tip_amount = null, int[]|null $suggested_tip_amounts = null, string|null $provider_data = null, string|null $photo_url = null, int|null $photo_size = null, int|null $photo_width = null, int|null $photo_height = null, bool|null $need_name = null, bool|null $need_phone_number = null, bool|null $need_email = null, bool|null $need_shipping_address = null, bool|null $send_phone_number_to_provider = null, bool|null $send_email_to_provider = null, bool|null $is_flexible = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to create a link for an invoice. Returns the created invoice link as String on success. |
||
310 | * @method bool|responseError answerShippingQuery (bool|array $ok, string|null $shipping_query_id = null, shippingOption[]|null $shipping_options = null, string|null $error_message = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the Bot API will send an Update with a shipping_query field to the bot. Use this method to reply to shipping queries. On success, True is returned. |
||
311 | * @method bool|responseError answerShipping (bool|array $ok, string|null $shipping_query_id = null, shippingOption[]|null $shipping_options = null, string|null $error_message = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the Bot API will send an Update with a shipping_query field to the bot. Use this method to reply to shipping queries. On success, True is returned. |
||
312 | * @method bool|responseError answerPreCheckoutQuery (bool|array $ok, string|null $pre_checkout_query_id = null, string|null $error_message = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an Update with the field pre_checkout_query. Use this method to respond to such pre-checkout queries. On success, True is returned. Note: The Bot API must receive an answer within 10 seconds after the pre-checkout query was sent. |
||
313 | * @method bool|responseError answerPreCheckout (bool|array $ok, string|null $pre_checkout_query_id = null, string|null $error_message = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an Update with the field pre_checkout_query. Use this method to respond to such pre-checkout queries. On success, True is returned. Note: The Bot API must receive an answer within 10 seconds after the pre-checkout query was sent. |
||
314 | * @method bool|responseError answerPreCheck (bool|array $ok, string|null $pre_checkout_query_id = null, string|null $error_message = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an Update with the field pre_checkout_query. Use this method to respond to such pre-checkout queries. On success, True is returned. Note: The Bot API must receive an answer within 10 seconds after the pre-checkout query was sent. |
||
315 | * @method bool|responseError refundStarPayment (string|array $telegram_payment_charge_id, int|null $user_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Refunds a successful payment in Telegram Stars. Returns True on success. |
||
316 | * @method bool|responseError refundPayment (string|array $telegram_payment_charge_id, int|null $user_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Refunds a successful payment in Telegram Stars. Returns True on success. |
||
317 | * @method bool|responseError refundStar (string|array $telegram_payment_charge_id, int|null $user_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Refunds a successful payment in Telegram Stars. Returns True on success. |
||
318 | * @method bool|responseError setPassportDataErrors (passportElementError[]|array $errors, int|null $user_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Informs a user that some of the Telegram Passport elements they provided contains errors. The user will not be able to re-submit their Passport to you until the errors are fixed (the contents of the field for which you returned the error must change). Returns True on success.Use this if the data submitted by the user doesn't satisfy the standards your service requires for any reason. For example, if a birthday date seems invalid, a submitted document is blurry, a scan shows evidence of tampering, etc. Supply some details in the error message to make sure the user knows how to correct the issues. |
||
319 | * @method bool|responseError setPassport (passportElementError[]|array $errors, int|null $user_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Informs a user that some of the Telegram Passport elements they provided contains errors. The user will not be able to re-submit their Passport to you until the errors are fixed (the contents of the field for which you returned the error must change). Returns True on success.Use this if the data submitted by the user doesn't satisfy the standards your service requires for any reason. For example, if a birthday date seems invalid, a submitted document is blurry, a scan shows evidence of tampering, etc. Supply some details in the error message to make sure the user knows how to correct the issues. |
||
320 | * @method message|responseError sendGame (string|array $game_short_name, int|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send a game. On success, the sent Message is returned. |
||
321 | * @method message|responseError game (string|array $game_short_name, int|null $chat_id = null, string|null $business_connection_id = null, int|null $message_thread_id = null, bool|null $disable_notification = null, bool|null $protect_content = null, string|null $message_effect_id = null, replyParameters|object|array|null $reply_parameters = null, inlineKeyboardMarkup|object|array|null $reply_markup = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null, int|null $reply_to_message_id = null, bool|null $allow_sending_without_reply = null) Use this method to send a game. On success, the sent Message is returned. |
||
322 | * @method message|bool|responseError setGameScore (int|array $score, int|null $user_id = null, bool|null $force = null, bool|null $disable_edit_message = null, int|null $chat_id = null, int|null $message_id = null, string|null $inline_message_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to set the score of the specified user in a game message. On success, if the message is not an inline message, the Message is returned, otherwise True is returned. Returns an error, if the new score is not greater than the user's current score in the chat and force is False. |
||
323 | * @method message|bool|responseError gameScore (int|array $score, int|null $user_id = null, bool|null $force = null, bool|null $disable_edit_message = null, int|null $chat_id = null, int|null $message_id = null, string|null $inline_message_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to set the score of the specified user in a game message. On success, if the message is not an inline message, the Message is returned, otherwise True is returned. Returns an error, if the new score is not greater than the user's current score in the chat and force is False. |
||
324 | * @method gameHighScore[]|responseError getGameHighScores (int|array|null $user_id = null, int|null $chat_id = null, int|null $message_id = null, string|null $inline_message_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get data for high score tables. Will return the score of the specified user and several of their neighbors in a game. Returns an Array of GameHighScore objects. |
||
325 | * @method gameHighScore[]|responseError getGameHigh (int|array|null $user_id = null, int|null $chat_id = null, int|null $message_id = null, string|null $inline_message_id = null, string|null $token = null, bool|null $forgot = null, bool|null $answer = null) Use this method to get data for high score tables. Will return the score of the specified user and several of their neighbors in a game. Returns an Array of GameHighScore objects. |
||
326 | */ |
||
327 | class BPT extends telegram{ |
||
328 | public static stdClass|update $update; |
||
329 | |||
330 | public static BPT $handler; |
||
331 | |||
332 | |||
333 | public function __construct (array|easySettings $settings) { |
||
334 | static::$handler = &$this; |
||
335 | settings::init($settings); |
||
336 | } |
||
337 | |||
338 | public function __destruct() { |
||
339 | settings::done(); |
||
340 | } |
||
341 | |||
342 | #[NoReturn] |
||
343 | public static function exit (string|null $message = null): void { |
||
344 | die($message ?? "<div style='width:98vw;height:98vh;display:flex;justify-content:center;align-items:center;font-size:25vw'>BPT</div>"); |
||
0 ignored issues
–
show
|
|||
345 | } |
||
346 | } |
||
347 |
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.