From 2dc346ec14f613694f340c07907441923c1fd808 Mon Sep 17 00:00:00 2001 From: Alexander Artemenko Date: Fri, 6 Dec 2024 23:55:30 +0000 Subject: [PATCH] Support all kinds of keyboard buttons. --- examples/mini-app.lisp | 23 +- v2/README.md | 2 +- v2/actions/send-text.lisp | 69 +- v2/high/keyboard.lisp | 764 ++ v2/high/permissions.lisp | 50 + v2/spec.json | 15115 +++++++++++++++++++++--------------- v2/types.lisp | 15 +- v2/utils.lisp | 24 +- 8 files changed, 9576 insertions(+), 6486 deletions(-) create mode 100644 v2/high/keyboard.lisp create mode 100644 v2/high/permissions.lisp diff --git a/examples/mini-app.lisp b/examples/mini-app.lisp index ac08f47..6ad9241 100644 --- a/examples/mini-app.lisp +++ b/examples/mini-app.lisp @@ -41,7 +41,11 @@ (:import-from #:alexandria #:assoc-value) (:import-from #:yason - #:with-output-to-string*)) + #:with-output-to-string*) + (:import-from #:cl-telegram-bot2/high/keyboard + #:remove-keyboard + #:open-web-app + #:keyboard)) (in-package #:cl-telegram-bot2-examples/mini-app) @@ -146,24 +150,21 @@ We will send the verification link to `~A`." (let ((keyboard - (list (make-instance 'cl-telegram-bot2/api:keyboard-button - :text "Open Mini App" - :web-app - (make-instance 'cl-telegram-bot2/api:web-app-info - :url "https://cl-echo-bot.dev.40ants.com/"))))) + (keyboard (open-web-app "Open Mini App2" + "https://cl-echo-bot.dev.40ants.com/") + :one-time-keyboard t))) (defbot test-bot () () (:initial-state (state (send-text "Initial state. Give /app command to open the mini-app or press this button:" - :buttons keyboard - :keyboard-type :main) + :reply-markup keyboard) :on-web-app-data (list 'save-form-data (send-text 'format-response-text - :parse-mode "Markdown")) + :parse-mode "Markdown" + :reply-markup (remove-keyboard))) :on-result (send-text "Welcome back!") :on-update (send-text "Give /app command to open the mini-app or press this button:" - :buttons keyboard - :keyboard-type :main) + :reply-markup keyboard) :commands (list (command "/app" (send-text "App opening is not implemented yet.") diff --git a/v2/README.md b/v2/README.md index 420bee9..dddf2c9 100644 --- a/v2/README.md +++ b/v2/README.md @@ -1,4 +1,4 @@ Command to donwload api spec: -curl 'https://raw.githubusercontent.com/rockneurotiko/telegram_api_json/refs/tags/0.7.2/exports/tg_api_pretty.json' > spec.json +curl 'https://raw.githubusercontent.com/rockneurotiko/telegram_api_json/refs/tags/0.8.0/exports/tg_api_pretty.json' > spec.json diff --git a/v2/actions/send-text.lisp b/v2/actions/send-text.lisp index a86b519..547d6c8 100644 --- a/v2/actions/send-text.lisp +++ b/v2/actions/send-text.lisp @@ -14,43 +14,43 @@ (:import-from #:cl-telegram-bot2/utils #:call-if-needed) (:import-from #:cl-telegram-bot2/types + #:reply-markup-type #:inline-keyboard-buttons) (:export #:send-text)) (in-package #:cl-telegram-bot2/actions/send-text) -(defparameter *default-keyboad-type* - :inline) - - (defclass send-text (action) ((text :initarg :text - :type (or string - symbol) + :type (or symbol + string) :reader text) - (buttons :initarg :buttons - :initform nil - :type list - :reader buttons) - (keyboard-type :initarg :keyboard-type - :initform *default-keyboad-type* - :type (member :main :inline) - :reader keyboard-type) + (reply-markup :initarg :reply-markup + :initform nil + :type (or null + symbol + reply-markup-type) + :reader reply-markup) (parse-mode :initarg :parse-mode :initform nil - :type (or null string) + :type (or null + symbol + string) :documentation "Supported values are: \"Markdown\", \"MarkdownV2\" or \"HTML\". Read more about formatting options in the Telegram documentaion: https://core.telegram.org/bots/api#formatting-options" :reader parse-mode))) (-> send-text ((or string symbol) &key - (:buttons inline-keyboard-buttons) - (:keyboard-type (member :main :inline)) + (:reply-markup reply-markup-type) (:parse-mode (or null string))) (values send-text &optional)) -(defun send-text (text-or-func-name &key buttons (keyboard-type *default-keyboad-type*) parse-mode) + +(defun send-text (text-or-func-name + &key + reply-markup + parse-mode) (when (and (symbolp text-or-func-name) (not (fboundp text-or-func-name))) (error "SEND-TEXT waits a text or fbound symbol. ~S is not fbound." @@ -58,8 +58,7 @@ (make-instance 'send-text :text text-or-func-name - :buttons buttons - :keyboard-type keyboard-type + :reply-markup reply-markup :parse-mode parse-mode)) @@ -75,41 +74,15 @@ (defun do-action (action) (let* ((text (call-if-needed (text action))) - (buttons (call-if-needed (buttons action))) (parse-mode (call-if-needed (parse-mode action))) - (reply-markup - (when buttons - (ecase (keyboard-type action) - (:inline - (make-instance 'cl-telegram-bot2/api:inline-keyboard-markup - :inline-keyboard - (list - (loop for button in buttons - collect (etypecase button - (cl-telegram-bot2/api:inline-keyboard-button - button) - (string - (make-instance 'cl-telegram-bot2/api:inline-keyboard-button - :text button - :callback-data button))))))) - (:main - (make-instance 'cl-telegram-bot2/api:reply-keyboard-markup - :keyboard - (list - (loop for button in buttons - collect (etypecase button - (cl-telegram-bot2/api:keyboard-button - button) - (string - (make-instance 'cl-telegram-bot2/api:keyboard-button - :text button))))))))))) + (reply-markup (call-if-needed (reply-markup action)))) (apply #'reply text (append (when parse-mode (list :parse-mode parse-mode)) (when reply-markup - (list :reply-markup reply-markup))))) + (list :reply-markup (reply-markup action)))))) (values)) diff --git a/v2/high/keyboard.lisp b/v2/high/keyboard.lisp new file mode 100644 index 0000000..b30d00a --- /dev/null +++ b/v2/high/keyboard.lisp @@ -0,0 +1,764 @@ +(uiop:define-package #:cl-telegram-bot2/high/keyboard + (:use #:cl) + (:import-from #:serapeum + #:soft-list-of + #:->) + (:import-from #:cl-telegram-bot2/api + #:inline-keyboard-markup + #:reply-keyboard-markup) + (:import-from #:alexandria + #:required-argument) + (:import-from #:cl-telegram-bot2/high/permissions + #:permissions-to-json + #:chat-administration-permissions) + (:export #:keyboard + #:text-button + #:open-web-app + #:inline-keyboard + #:request-users + #:request-chat + #:request-contact + #:request-location + #:request-poll + #:open-url + #:call-callback + #:open-login-url + #:switch-inline-query + #:switch-inline-query-current-chat + #:switch-inline-query-choosen-chat + #:copy-text + #:open-game + #:pay-button + #:remove-keyboard)) +(in-package #:cl-telegram-bot2/high/keyboard) + + +(defgeneric make-main-keyboard-button (button) + (:documentation "Returns API CL-TELEGRAM-BOT2/API:KEYBOARD-BUTTON class instance from given high level button description.") + (:method ((button cl-telegram-bot2/api:keyboard-button)) + button)) + + +(defgeneric make-inline-keyboard-button (button) + (:documentation "Returns API CL-TELEGRAM-BOT2/API:INLINE-KEYBOARD-BUTTON class instance from given high level button description.") + (:method ((button cl-telegram-bot2/api:inline-keyboard-button)) + button)) + + +(defclass button () + ((title :initarg :title + :type string + :reader button-title))) + + +(defclass keyboard-button-mixin () + ()) + + +(defclass inline-keyboard-button-mixin () + ()) + + +;; Buttons supported in both main and inline keyboards + +(defclass text-button (keyboard-button-mixin inline-keyboard-button-mixin button) + ()) + + +(-> text-button (string) + (values text-button &optional)) + +(defun text-button (title) + (make-instance 'text-button + :title title)) + + +(defmethod make-main-keyboard-button ((button text-button)) + (make-instance 'cl-telegram-bot2/api:keyboard-button + :text (button-title button))) + + +(defmethod make-inline-keyboard-button ((button text-button)) + (make-instance 'cl-telegram-bot2/api:inline-keyboard-button + :text (button-title button))) + + +(defclass open-web-app (keyboard-button-mixin inline-keyboard-button-mixin button) + ((url :initarg :url + :type string + :reader web-app-url))) + + +(-> open-web-app (string string) + (values open-web-app &optional)) + + +(defun open-web-app (title web-app-url) + (make-instance 'open-web-app + :title title + :url web-app-url)) + + +(defmethod make-main-keyboard-button ((button open-web-app)) + (make-instance 'cl-telegram-bot2/api:keyboard-button + :text (button-title button) + :web-app (make-instance 'cl-telegram-bot2/api:web-app-info + :url (web-app-url button)))) + + +(defmethod make-inline-keyboard-button ((button open-web-app)) + (make-instance 'cl-telegram-bot2/api:inline-keyboard-button + :text (button-title button) + :web-app (make-instance 'cl-telegram-bot2/api:web-app-info + :url (web-app-url button)))) + + +;; Main keyboard buttons + +(defclass request-users (keyboard-button-mixin button) + ((request-id :initarg :request-id + :type integer + :initform (required-argument "Argument :request-id is required.") + :reader users-request-id) + (user-is-bot :initarg :user-is-bot + :type boolean + :initform nil + :reader user-is-bot-p) + (user-is-premium :initarg :user-is-premium + :type boolean + :initform nil + :reader user-is-premium-p) + (max-quantity :initarg :max-quantity + :type (integer 1 10) + :initform 1 + :reader max-quantity) + (request-name :initarg :request-name + :type boolean + :initform nil + :reader request-name-p) + (request-username :initarg :request-username + :type boolean + :initform nil + :reader request-username-p) + (request-photo :initarg :request-photo + :type boolean + :initform nil + :reader request-photo-p))) + + +(-> request-users (string integer + &key + (:user-is-bot boolean) + (:user-is-premium boolean) + (:max-quantity (integer 1 10)) + (:request-name boolean) + (:request-username boolean) + (:request-photo boolean)) + (values request-users &optional)) + + +(defun request-users (title request-id + &rest rest + &key + user-is-bot + user-is-premium + max-quantity + request-name + request-username + request-photo) + (declare (ignore user-is-bot + user-is-premium + max-quantity + request-name + request-username + request-photo)) + (apply #'make-instance + 'request-users + :title title + :request-id request-id + rest)) + + +(defmethod make-main-keyboard-button ((button request-users)) + (make-instance 'cl-telegram-bot2/api:keyboard-button + :text (button-title button) + :request-users (make-instance 'cl-telegram-bot2/api:keyboard-button-request-users + :user-is-bot (user-is-bot-p button) + :user-is-premium (user-is-premium-p button) + :max-quantity (max-quantity button) + :request-name (request-name-p button) + :request-username (request-username-p button) + :request-photo (request-photo-p button)))) + + +(defclass request-chat (keyboard-button-mixin button) + ((request-id :initarg :request-id + :type integer + :initform (required-argument "Argument :request-id is required.") + :reader users-request-id) + (chat-is-channel :initarg :chat-is-channel + :type boolean + :initform nil + :reader chat-is-channel-p) + (chat-is-forum :initarg :chat-is-forum + :type boolean + :initform nil + :reader chat-is-forum-p) + (chat-has-username :initarg :chat-has-username + :type boolean + :initform nil + :reader chat-has-username-p) + (chat-is-created :initarg :chat-is-created + :type boolean + :initform nil + :reader chat-is-created-p) + (user-administration-rights :initarg :user-administration-rights + :type chat-administration-permissions + :initform nil + :reader user-administration-rights) + (bot-administration-rights :initarg :bot-administration-rights + :type chat-administration-permissions + :initform nil + :reader bot-administration-rights) + (bot-is-member :initarg :bot-is-member + :type boolean + :initform nil + :reader bot-is-member-p) + (request-title :initarg :request-title + :type boolean + :initform nil + :reader request-title-p) + (request-username :initarg :request-username + :type boolean + :initform nil + :reader request-username-p) + (request-photo :initarg :request-photo + :type boolean + :initform nil + :reader request-photo-p))) + + +(-> request-chat (string integer + &key + (:chat-is-channel boolean) + (:chat-is-forum boolean) + (:chat-has-username boolean) + (:chat-is-created boolean) + (:user-administration-rights chat-administration-permissions) + (:bot-administration-rights chat-administration-permissions) + (:bot-is-member boolean) + (:request-title boolean) + (:request-username boolean) + (:request-photo boolean)) + (values request-chat &optional)) + + +(defun request-chat (title request-id + &rest rest + &key + chat-is-channel + chat-is-forum + chat-has-username + chat-is-created + user-administration-rights + bot-administration-rights + bot-is-member + request-title + request-username + request-photo) + (declare (ignore chat-is-channel + chat-is-forum + chat-has-username + chat-is-created + user-administration-rights + bot-administration-rights + bot-is-member + request-title + request-username + request-photo)) + (apply #'make-instance + 'request-chat + :title title + :request-id request-id + rest)) + + +(defmethod make-main-keyboard-button ((button request-chat)) + (make-instance 'cl-telegram-bot2/api:keyboard-button + :text (button-title button) + :request-users (make-instance 'cl-telegram-bot2/api:keyboard-button-request-chat + :chat-is-channel (chat-is-channel-p button) + :chat-is-forum (chat-is-forum-p button) + :chat-has-username (chat-has-username-p button) + :chat-is-created (chat-is-created-p button) + :chat-is-channel (chat-is-channel-p button) + :user-administration-rights (permissions-to-json + (user-administration-rights button)) + :bot-administration-rights (permissions-to-json + (bot-administration-rights button)) + :bot-is-member (bot-is-member-p button) + :request-title (request-title-p button) + :request-username (request-username-p button) + :request-photo (request-photo-p button)))) + + +(defclass request-contact (keyboard-button-mixin button) + ()) + + +(-> request-contact (string) + (values request-contact &optional)) + + +(defun request-contact (title) + (make-instance 'request-contact + :title title)) + + +(defmethod make-main-keyboard-button ((button request-contact)) + (make-instance 'cl-telegram-bot2/api:keyboard-button + :text (button-title button) + :request-contact t)) + + +(defclass request-location (keyboard-button-mixin button) + ()) + + +(-> request-location (string) + (values request-location &optional)) + + +(defun request-location (title) + (make-instance 'request-location + :title title)) + + +(defmethod make-main-keyboard-button ((button request-location)) + (make-instance 'cl-telegram-bot2/api:keyboard-button + :text (button-title button) + :request-location t)) + + +(defclass request-poll (keyboard-button-mixin button) + ((poll-type :initarg :poll-type + :type (or null string) + :initform nil + :documentation "If \"quiz\" is passed, the user will be allowed to create only polls in the quiz mode. If \"regular\" is passed, only regular polls will be allowed. Otherwise, the user will be allowed to create a poll of any type. + + API: https://core.telegram.org/bots/api#keyboardbuttonpolltype" + :reader requested-poll-type))) + + +(-> request-poll (string &key (:poll-type string)) + (values request-poll &optional)) + + +(defun request-poll (title + &rest rest + &key poll-type) + (declare (ignore poll-type)) + (apply #'make-instance 'request-poll + :title title + rest)) + + +(defmethod make-main-keyboard-button ((button request-poll)) + (make-instance 'cl-telegram-bot2/api:keyboard-button + :text (button-title button) + :request-contact (make-instance 'cl-telegram-bot2/api:keyboard-button-poll-type + :type (requested-poll-type button)))) + + +;; Inline keyboard buttons + +(defclass open-url (inline-keyboard-button-mixin button) + ((url :initarg :url + :type string + :reader url))) + + +(-> open-url (string string) + (values open-url &optional)) + + +(defun open-url (title url) + (make-instance 'open-url + :title title + :url url)) + + +(defmethod make-inline-keyboard-button ((button open-url)) + (make-instance 'cl-telegram-bot2/api:inline-keyboard-button + :text (button-title button) + :url (url button))) + + +(defclass call-callback (inline-keyboard-button-mixin button) + ((callback-data :initarg :callback-data + :type string + :reader callback-data))) + + +(-> call-callback (string string) + (values call-callback &optional)) + + +(defun call-callback (title callback-data) + (make-instance 'call-callback + :title title + :callback-data callback-data)) + + +(defmethod make-inline-keyboard-button ((button call-callback)) + (make-instance 'cl-telegram-bot2/api:inline-keyboard-button + :text (button-title button) + :callback-data (callback-data button))) + + +(defclass open-login-url (inline-keyboard-button-mixin button) + ((login-url :initarg :login-url + :type string + :reader login-url) + (forward-text :initarg :forward-text + :type (or null string) + :initform nil + :reader forward-text) + (bot-username :initarg :bot-username + :type (or null string) + :initform nil + :reader bot-username) + (request-write-access :initarg :request-write-access + :type boolean + :initform nil + :reader request-write-access-p))) + + +(-> open-login-url (string string + &key + (:forward-text (or null string)) + (:bot-username (or null string)) + (:request-write-access boolean)) + (values open-login-url &optional)) + + +(defun open-login-url (button-title login-url + &rest rest + &key + forward-text + bot-username + request-write-access) + (declare (ignore forward-text bot-username request-write-access)) + (apply #'make-instance + 'open-login-url + :title button-title + :login-url login-url + rest)) + + +(defmethod make-inline-keyboard-button ((button open-login-url)) + (make-instance 'cl-telegram-bot2/api:inline-keyboard-button + :text (button-title button) + :login-url (make-instance 'cl-telegram-bot2/api:login-url + :url (login-url button) + :forward-text (forward-text button) + :bot-username (bot-username button) + :request-write-access (request-write-access-p button)))) + + +(defclass switch-inline-query (inline-keyboard-button-mixin button) + ((inline-query :initarg :inline-query + :type string + :reader inline-query))) + + +(-> switch-inline-query (string string) + (values switch-inline-query &optional)) + + +(defun switch-inline-query (title inline-query) + (make-instance 'switch-inline-query + :title title + :inline-query inline-query)) + + +(defmethod make-inline-keyboard-button ((button switch-inline-query)) + (make-instance 'cl-telegram-bot2/api:inline-keyboard-button + :text (button-title button) + :switch-inline-query (inline-query button))) + + +(defclass switch-inline-query-current-chat (inline-keyboard-button-mixin button) + ((inline-query :initarg :inline-query + :type string + :reader inline-query))) + + +(-> switch-inline-query-current-chat (string string) + (values switch-inline-query &optional)) + + +(defun switch-inline-query-current-chat (title inline-query) + (make-instance 'switch-inline-query-current-chat + :title title + :inline-query inline-query)) + + +(defmethod make-inline-keyboard-button ((button switch-inline-query-current-chat)) + (make-instance 'cl-telegram-bot2/api:inline-keyboard-button + :text (button-title button) + :switch-inline-query-current-chat (inline-query button))) + + +(defclass switch-inline-query-choosen-chat (inline-keyboard-button-mixin button) + ((query :initarg :query + :type (or null string) + :reader query) + (allow-user-chats :initarg :allow-user-chats + :type boolean + :reader allow-user-chats-p) + (allow-bot-chats :initarg :allow-bot-chats + :type boolean + :reader allow-bot-chats-p) + (allow-group-chats :initarg :allow-group-chats + :type boolean + :reader allow-group-chats-p) + (allow-channel-chats :initarg :allow-channel-chats + :type boolean + :reader allow-channel-chats-p))) + + +(-> switch-inline-query-choosen-chat (string + &key + (:query string) + (:allow-user-chats boolean) + (:allow-bot-chats boolean) + (:allow-group-chats boolean) + (:allow-channel-chats boolean)) + (values switch-inline-query-choosen-chat &optional)) + + +(defun switch-inline-query-choosen-chat (title + &rest rest + &key + query + allow-user-chats + allow-bot-chats + allow-group-chats + allow-channel-chats) + (declare (ignore query + allow-user-chats + allow-bot-chats + allow-group-chats + allow-channel-chats)) + (apply #'make-instance + 'switch-inline-query-choosen-chat + :title title + rest)) + + +(defmethod make-inline-keyboard-button ((button switch-inline-query-choosen-chat)) + (make-instance 'cl-telegram-bot2/api:inline-keyboard-button + :text (button-title button) + :switch-inline-query-choosen-chat + (make-instance 'cl-telegram-bot2/api:switch-inline-query-chosen-chat + :query (query button) + :allow-user-chats (allow-user-chats-p button) + :allow-bot-chats (allow-bot-chats-p button) + :allow-group-chats (allow-group-chats-p button) + :allow-channel-chats (allow-channel-chats-p button)))) + + +(defclass copy-text (inline-keyboard-button-mixin button) + ((text-to-copy :initarg :text-to-copy + :type string + :reader text-to-copy))) + + +(-> copy-text (string string) + (values copy-text &optional)) + + +(defun copy-text (button-title text-to-copy) + (make-instance 'copy-text + :title button-title + :text-to-copy text-to-copy)) + + +(defmethod make-inline-keyboard-button ((button copy-text)) + (make-instance 'cl-telegram-bot2/api:inline-keyboard-button + :text (button-title button) + :copy-text + (make-instance 'cl-telegram-bot2/api:copy-text-button + :text (text-to-copy button)))) + + +(defclass open-game (inline-keyboard-button-mixin button) + ()) + + +(-> open-game (string) + (values open-game &optional)) + + +(defun open-game (button-title) + (make-instance 'open-game + :title button-title)) + + +(defmethod make-inline-keyboard-button ((button open-game)) + (make-instance 'cl-telegram-bot2/api:inline-keyboard-button + :text (button-title button) + :callback-game + (make-instance 'cl-telegram-bot2/api:callback-game))) + + +(defclass pay-button (inline-keyboard-button-mixin button) + ()) + + +(-> pay-button (string) + (values pay-button &optional)) + + +(defun pay-button (button-title) + (make-instance 'pay-button + :title button-title)) + + +(defmethod make-inline-keyboard-button ((button pay-button)) + (make-instance 'cl-telegram-bot2/api:inline-keyboard-button + :text (button-title button) + :pay t)) + + +;; Type Helpers + +(deftype keyboard-button-type () + `(or keyboard-button-mixin + cl-telegram-bot2/api:keyboard-button)) + +(deftype keyboard-buttons-row () + '(soft-list-of keyboard-button-type)) + + +(deftype keyboard-buttons-rows () + '(soft-list-of keyboard-buttons-row)) + + +(deftype inline-keyboard-button-type () + `(or inline-keyboard-button-mixin + cl-telegram-bot2/api:inline-keyboard-button)) + +(deftype inline-keyboard-buttons-row () + '(soft-list-of inline-keyboard-button-type)) + + +(deftype inline-keyboard-buttons-rows () + '(soft-list-of inline-keyboard-buttons-row)) + + + +;; Keyboard constructors + +;; Main keyboard + +(-> ensure-buttons-rows ((or keyboard-button-type + keyboard-buttons-row + keyboard-buttons-rows)) + (values keyboard-buttons-rows &optional)) + + +(defun ensure-buttons-rows (value) + (etypecase value + (keyboard-button-type + (list (list value))) + (keyboard-buttons-row + (list value)) + (keyboard-buttons-rows + value))) + + +(-> keyboard ((or keyboard-button-type + keyboard-buttons-row + keyboard-buttons-rows) + &key + (:is-persistent boolean) + (:resize-keyboard boolean) + (:one-time-keyboard boolean) + (:input-field-placeholder string) + (:selective boolean)) + (values reply-keyboard-markup)) + + +(defun keyboard (buttons + &rest rest + &key + is-persistent + resize-keyboard + one-time-keyboard + input-field-placeholder + selective) + "Returns object of CL-TELEGRAM-BOT2/API:REPLY-KEYBOARD-MARKUP class. + + API docs: https://core.telegram.org/bots/api#replykeyboardmarkup" + + (declare (ignore is-persistent + resize-keyboard + one-time-keyboard + input-field-placeholder + selective)) + + (apply #'make-instance + 'reply-keyboard-markup + :keyboard + (loop for row in (ensure-buttons-rows buttons) + collect (loop for button in row + collect (make-main-keyboard-button button))) + rest)) + + +(-> ensure-inline-buttons-rows ((or inline-keyboard-button-type + inline-keyboard-buttons-row + inline-keyboard-buttons-rows)) + (values inline-keyboard-buttons-rows &optional)) + + + +(defun ensure-inline-buttons-rows (value) + (etypecase value + (inline-keyboard-button-type + (list (list value))) + (inline-keyboard-buttons-row + (list value)) + (inline-keyboard-buttons-rows + value))) + + +(-> inline-keyboard ((or inline-keyboard-button-type + inline-keyboard-buttons-row + inline-keyboard-buttons-rows)) + (values inline-keyboard-markup)) + + +(defun inline-keyboard (buttons) + "Returns object of CL-TELEGRAM-BOT2/API:INLOINE-KEYBOARD-MARKUP class. + + API docs: https://core.telegram.org/bots/api#replykeyboardmarkup" + (apply #'make-instance + 'reply-keyboard-markup + :inline-keyboard + (loop for row in (ensure-inline-buttons-rows buttons) + collect (loop for button in row + do (make-inline-keyboard-button button))))) + + +(-> remove-keyboard (&key + (:selective boolean)) + (values cl-telegram-bot2/api:reply-keyboard-remove &optional)) + + +(defun remove-keyboard (&key selective) + (make-instance 'cl-telegram-bot2/api:reply-keyboard-remove + :remove-keyboard t + :selective selective)) diff --git a/v2/high/permissions.lisp b/v2/high/permissions.lisp new file mode 100644 index 0000000..0b508d7 --- /dev/null +++ b/v2/high/permissions.lisp @@ -0,0 +1,50 @@ +(uiop:define-package #:cl-telegram-bot2/high/permissions + (:use #:cl) + (:import-from #:serapeum + #:dict + #:-> + #:soft-list-of) + (:import-from #:str + #:replace-all) + (:import-from #:cl-telegram-bot2/utils + #:to-json) + (:export + #:chat-administration-permission + #:chat-administration-permissions)) +(in-package #:cl-telegram-bot2/high/permissions) + + +(deftype chat-administration-permission () + "API docs: https://core.telegram.org/bots/api#chatadministratorrights" + `(member :is-anonymous + :can-manage-chat + :can-delete-messages + :can-manage-video-chats + :can-restrict-members + :can-promote-members + :can-change-info + :can-invite-users + :can-post-stories + :can-edit-stories + :can-delete-stories + :can-post-messages + :can-edit-messages + :can-pin-messages + :can-manage-topics)) + + +(deftype chat-administration-permissions () + `(soft-list-of chat-administration-permission)) + + +(-> permissions-to-json (chat-administration-permissions) + (values string &optional)) + +(defun permissions-to-json (permissions) + (loop with hash = (dict) + for permission in permissions + do (setf (gethash (replace-all "-" "_" + (string-downcase permission)) + hash) + yason:true) + finally (return (to-json hash)))) diff --git a/v2/spec.json b/v2/spec.json index 37765b1..b162753 100644 --- a/v2/spec.json +++ b/v2/spec.json @@ -3,260 +3,270 @@ { "params": [ { + "optional": false, + "description": "The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This identifier becomes especially handy if you're using webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially.", "type": [ "int" ], - "optional": false, - "name": "update_id", - "description": "The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This identifier becomes especially handy if you're using webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially." + "name": "update_id" }, { - "type": [ + "optional": true, + "description": "Optional. New incoming message of any kind - text, photo, sticker, etc.", + "type": [ "Message" ], - "optional": true, - "name": "message", - "description": "Optional. New incoming message of any kind - text, photo, sticker, etc." + "name": "message" }, { + "optional": true, + "description": "Optional. New version of a message that is known to the bot and was edited. This update may at times be triggered by changes to message fields that are either unavailable or not actively used by your bot.", "type": [ "Message" ], - "optional": true, - "name": "edited_message", - "description": "Optional. New version of a message that is known to the bot and was edited. This update may at times be triggered by changes to message fields that are either unavailable or not actively used by your bot." + "name": "edited_message" }, { + "optional": true, + "description": "Optional. New incoming channel post of any kind - text, photo, sticker, etc.", "type": [ "Message" ], - "optional": true, - "name": "channel_post", - "description": "Optional. New incoming channel post of any kind - text, photo, sticker, etc." + "name": "channel_post" }, { + "optional": true, + "description": "Optional. New version of a channel post that is known to the bot and was edited. This update may at times be triggered by changes to message fields that are either unavailable or not actively used by your bot.", "type": [ "Message" ], - "optional": true, - "name": "edited_channel_post", - "description": "Optional. New version of a channel post that is known to the bot and was edited. This update may at times be triggered by changes to message fields that are either unavailable or not actively used by your bot." + "name": "edited_channel_post" }, { + "optional": true, + "description": "Optional. The bot was connected to or disconnected from a business account, or a user edited an existing connection with the bot", "type": [ "BusinessConnection" ], - "optional": true, - "name": "business_connection", - "description": "Optional. The bot was connected to or disconnected from a business account, or a user edited an existing connection with the bot" + "name": "business_connection" }, { + "optional": true, + "description": "Optional. New message from a connected business account", "type": [ "Message" ], - "optional": true, - "name": "business_message", - "description": "Optional. New non-service message from a connected business account" + "name": "business_message" }, { + "optional": true, + "description": "Optional. New version of a message from a connected business account", "type": [ "Message" ], - "optional": true, - "name": "edited_business_message", - "description": "Optional. New version of a message from a connected business account" + "name": "edited_business_message" }, { + "optional": true, + "description": "Optional. Messages were deleted from a connected business account", "type": [ "BusinessMessagesDeleted" ], - "optional": true, - "name": "deleted_business_messages", - "description": "Optional. Messages were deleted from a connected business account" + "name": "deleted_business_messages" }, { + "optional": true, + "description": "Optional. A reaction to a message was changed by a user. The bot must be an administrator in the chat and must explicitly specify \"message_reaction\" in the list of allowed_updates to receive these updates. The update isn't received for reactions set by bots.", "type": [ "MessageReactionUpdated" ], - "optional": true, - "name": "message_reaction", - "description": "Optional. A reaction to a message was changed by a user. The bot must be an administrator in the chat and must explicitly specify \"message_reaction\" in the list of allowed_updates to receive these updates. The update isn't received for reactions set by bots." + "name": "message_reaction" }, { + "optional": true, + "description": "Optional. Reactions to a message with anonymous reactions were changed. The bot must be an administrator in the chat and must explicitly specify \"message_reaction_count\" in the list of allowed_updates to receive these updates. The updates are grouped and can be sent with delay up to a few minutes.", "type": [ "MessageReactionCountUpdated" ], - "optional": true, - "name": "message_reaction_count", - "description": "Optional. Reactions to a message with anonymous reactions were changed. The bot must be an administrator in the chat and must explicitly specify \"message_reaction_count\" in the list of allowed_updates to receive these updates. The updates are grouped and can be sent with delay up to a few minutes." + "name": "message_reaction_count" }, { + "optional": true, + "description": "Optional. New incoming inline query", "type": [ "InlineQuery" ], - "optional": true, - "name": "inline_query", - "description": "Optional. New incoming inline query" + "name": "inline_query" }, { + "optional": true, + "description": "Optional. The result of an inline query that was chosen by a user and sent to their chat partner. Please see our documentation on the feedback collecting for details on how to enable these updates for your bot.", "type": [ "ChosenInlineResult" ], - "optional": true, - "name": "chosen_inline_result", - "description": "Optional. The result of an inline query that was chosen by a user and sent to their chat partner. Please see our documentation on the feedback collecting for details on how to enable these updates for your bot." + "name": "chosen_inline_result" }, { + "optional": true, + "description": "Optional. New incoming callback query", "type": [ "CallbackQuery" ], - "optional": true, - "name": "callback_query", - "description": "Optional. New incoming callback query" + "name": "callback_query" }, { + "optional": true, + "description": "Optional. New incoming shipping query. Only for invoices with flexible price", "type": [ "ShippingQuery" ], - "optional": true, - "name": "shipping_query", - "description": "Optional. New incoming shipping query. Only for invoices with flexible price" + "name": "shipping_query" }, { + "optional": true, + "description": "Optional. New incoming pre-checkout query. Contains full information about checkout", "type": [ "PreCheckoutQuery" ], + "name": "pre_checkout_query" + }, + { "optional": true, - "name": "pre_checkout_query", - "description": "Optional. New incoming pre-checkout query. Contains full information about checkout" + "description": "Optional. A user purchased paid media with a non-empty payload sent by the bot in a non-channel chat", + "type": [ + "PaidMediaPurchased" + ], + "name": "purchased_paid_media" }, { + "optional": true, + "description": "Optional. New poll state. Bots receive only updates about manually stopped polls and polls, which are sent by the bot", "type": [ "Poll" ], - "optional": true, - "name": "poll", - "description": "Optional. New poll state. Bots receive only updates about manually stopped polls and polls, which are sent by the bot" + "name": "poll" }, { + "optional": true, + "description": "Optional. A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were sent by the bot itself.", "type": [ "PollAnswer" ], - "optional": true, - "name": "poll_answer", - "description": "Optional. A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were sent by the bot itself." + "name": "poll_answer" }, { + "optional": true, + "description": "Optional. The bot's chat member status was updated in a chat. For private chats, this update is received only when the bot is blocked or unblocked by the user.", "type": [ "ChatMemberUpdated" ], - "optional": true, - "name": "my_chat_member", - "description": "Optional. The bot's chat member status was updated in a chat. For private chats, this update is received only when the bot is blocked or unblocked by the user." + "name": "my_chat_member" }, { + "optional": true, + "description": "Optional. A chat member's status was updated in a chat. The bot must be an administrator in the chat and must explicitly specify \"chat_member\" in the list of allowed_updates to receive these updates.", "type": [ "ChatMemberUpdated" ], - "optional": true, - "name": "chat_member", - "description": "Optional. A chat member's status was updated in a chat. The bot must be an administrator in the chat and must explicitly specify \"chat_member\" in the list of allowed_updates to receive these updates." + "name": "chat_member" }, { + "optional": true, + "description": "Optional. A request to join the chat has been sent. The bot must have the can_invite_users administrator right in the chat to receive these updates.", "type": [ "ChatJoinRequest" ], - "optional": true, - "name": "chat_join_request", - "description": "Optional. A request to join the chat has been sent. The bot must have the can_invite_users administrator right in the chat to receive these updates." + "name": "chat_join_request" }, { + "optional": true, + "description": "Optional. A chat boost was added or changed. The bot must be an administrator in the chat to receive these updates.", "type": [ "ChatBoostUpdated" ], - "optional": true, - "name": "chat_boost", - "description": "Optional. A chat boost was added or changed. The bot must be an administrator in the chat to receive these updates." + "name": "chat_boost" }, { + "optional": true, + "description": "Optional. A boost was removed from a chat. The bot must be an administrator in the chat to receive these updates.", "type": [ "ChatBoostRemoved" ], - "optional": true, - "name": "removed_chat_boost", - "description": "Optional. A boost was removed from a chat. The bot must be an administrator in the chat to receive these updates." + "name": "removed_chat_boost" } ], - "name": "Update", - "description": "This object represents an incoming update.\nAt most one of the optional parameters can be present in any given update." + "description": "This object represents an incoming update.\nAt most one of the optional parameters can be present in any given update.", + "name": "Update" }, { "params": [ { + "optional": false, + "description": "Webhook URL, may be empty if webhook is not set up", "type": [ "str" ], - "optional": false, - "name": "url", - "description": "Webhook URL, may be empty if webhook is not set up" + "name": "url" }, { + "optional": false, + "description": "True, if a custom certificate was provided for webhook certificate checks", "type": [ "bool" ], - "optional": false, - "name": "has_custom_certificate", - "description": "True, if a custom certificate was provided for webhook certificate checks" + "name": "has_custom_certificate" }, { + "optional": false, + "description": "Number of updates awaiting delivery", "type": [ "int" ], - "optional": false, - "name": "pending_update_count", - "description": "Number of updates awaiting delivery" + "name": "pending_update_count" }, { + "optional": true, + "description": "Optional. Currently used webhook IP address", "type": [ "str" ], - "optional": true, - "name": "ip_address", - "description": "Optional. Currently used webhook IP address" + "name": "ip_address" }, { + "optional": true, + "description": "Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook", "type": [ "int" ], - "optional": true, - "name": "last_error_date", - "description": "Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook" + "name": "last_error_date" }, { + "optional": true, + "description": "Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook", "type": [ "str" ], - "optional": true, - "name": "last_error_message", - "description": "Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook" + "name": "last_error_message" }, { + "optional": true, + "description": "Optional. Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters", "type": [ "int" ], - "optional": true, - "name": "last_synchronization_error_date", - "description": "Optional. Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters" + "name": "last_synchronization_error_date" }, { + "optional": true, + "description": "Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery", "type": [ "int" ], - "optional": true, - "name": "max_connections", - "description": "Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery" + "name": "max_connections" }, { + "optional": true, + "description": "Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member", "type": [ [ "array", @@ -265,183 +275,269 @@ ] ] ], - "optional": true, - "name": "allowed_updates", - "description": "Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member" + "name": "allowed_updates" } ], - "name": "WebhookInfo", - "description": "Describes the current status of a webhook." + "description": "Describes the current status of a webhook.", + "name": "WebhookInfo" }, { "params": [ { + "optional": false, + "description": "Unique identifier for this user or bot. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.", "type": [ "int" ], - "optional": false, - "name": "id", - "description": "Unique identifier for this user or bot. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier." + "name": "id" }, { + "optional": false, + "description": "True, if this user is a bot", "type": [ "bool" ], - "optional": false, - "name": "is_bot", - "description": "True, if this user is a bot" + "name": "is_bot" }, { + "optional": false, + "description": "User's or bot's first name", "type": [ "str" ], - "optional": false, - "name": "first_name", - "description": "User's or bot's first name" + "name": "first_name" }, { + "optional": true, + "description": "Optional. User's or bot's last name", "type": [ "str" ], - "optional": true, - "name": "last_name", - "description": "Optional. User's or bot's last name" + "name": "last_name" }, { + "optional": true, + "description": "Optional. User's or bot's username", "type": [ "str" ], - "optional": true, - "name": "username", - "description": "Optional. User's or bot's username" + "name": "username" }, { + "optional": true, + "description": "Optional. IETF language tag of the user's language", "type": [ "str" ], - "optional": true, - "name": "language_code", - "description": "Optional. IETF language tag of the user's language" + "name": "language_code" }, { + "optional": true, + "description": "Optional. True, if this user is a Telegram Premium user", "type": [ "bool" ], - "optional": true, - "name": "is_premium", - "description": "Optional. True, if this user is a Telegram Premium user" + "name": "is_premium" }, { + "optional": true, + "description": "Optional. True, if this user added the bot to the attachment menu", "type": [ "bool" ], - "optional": true, - "name": "added_to_attachment_menu", - "description": "Optional. True, if this user added the bot to the attachment menu" + "name": "added_to_attachment_menu" }, { + "optional": true, + "description": "Optional. True, if the bot can be invited to groups. Returned only in getMe.", "type": [ "bool" ], - "optional": true, - "name": "can_join_groups", - "description": "Optional. True, if the bot can be invited to groups. Returned only in getMe." + "name": "can_join_groups" }, { + "optional": true, + "description": "Optional. True, if privacy mode is disabled for the bot. Returned only in getMe.", "type": [ "bool" ], - "optional": true, - "name": "can_read_all_group_messages", - "description": "Optional. True, if privacy mode is disabled for the bot. Returned only in getMe." + "name": "can_read_all_group_messages" }, { + "optional": true, + "description": "Optional. True, if the bot supports inline queries. Returned only in getMe.", "type": [ "bool" ], - "optional": true, - "name": "supports_inline_queries", - "description": "Optional. True, if the bot supports inline queries. Returned only in getMe." + "name": "supports_inline_queries" }, { + "optional": true, + "description": "Optional. True, if the bot can be connected to a Telegram Business account to receive its messages. Returned only in getMe.", "type": [ "bool" ], + "name": "can_connect_to_business" + }, + { "optional": true, - "name": "can_connect_to_business", - "description": "Optional. True, if the bot can be connected to a Telegram Business account to receive its messages. Returned only in getMe." + "description": "Optional. True, if the bot has a main Web App. Returned only in getMe.", + "type": [ + "bool" + ], + "name": "has_main_web_app" } ], - "name": "User", - "description": "This object represents a Telegram user or bot." + "description": "This object represents a Telegram user or bot.", + "name": "User" }, { "params": [ { + "optional": false, + "description": "Unique identifier for this chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.", "type": [ "int" ], + "name": "id" + }, + { "optional": false, - "name": "id", - "description": "Unique identifier for this chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier." + "description": "Type of the chat, can be either “private”, “group”, “supergroup” or “channel”", + "type": [ + "str" + ], + "name": "type" }, { + "optional": true, + "description": "Optional. Title, for supergroups, channels and group chats", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of chat, can be either “private”, “group”, “supergroup” or “channel”" + "name": "title" }, { + "optional": true, + "description": "Optional. Username, for private chats, supergroups and channels if available", "type": [ "str" ], + "name": "username" + }, + { "optional": true, - "name": "title", - "description": "Optional. Title, for supergroups, channels and group chats" + "description": "Optional. First name of the other party in a private chat", + "type": [ + "str" + ], + "name": "first_name" }, { + "optional": true, + "description": "Optional. Last name of the other party in a private chat", "type": [ "str" ], + "name": "last_name" + }, + { "optional": true, - "name": "username", - "description": "Optional. Username, for private chats, supergroups and channels if available" + "description": "Optional. True, if the supergroup chat is a forum (has topics enabled)", + "type": [ + "bool" + ], + "name": "is_forum" + } + ], + "description": "This object represents a chat.", + "name": "Chat" + }, + { + "params": [ + { + "optional": false, + "description": "Unique identifier for this chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.", + "type": [ + "int" + ], + "name": "id" + }, + { + "optional": false, + "description": "Type of the chat, can be either “private”, “group”, “supergroup” or “channel”", + "type": [ + "str" + ], + "name": "type" }, { + "optional": true, + "description": "Optional. Title, for supergroups, channels and group chats", "type": [ "str" ], + "name": "title" + }, + { "optional": true, - "name": "first_name", - "description": "Optional. First name of the other party in a private chat" + "description": "Optional. Username, for private chats, supergroups and channels if available", + "type": [ + "str" + ], + "name": "username" }, { + "optional": true, + "description": "Optional. First name of the other party in a private chat", "type": [ "str" ], + "name": "first_name" + }, + { "optional": true, - "name": "last_name", - "description": "Optional. Last name of the other party in a private chat" + "description": "Optional. Last name of the other party in a private chat", + "type": [ + "str" + ], + "name": "last_name" }, { + "optional": true, + "description": "Optional. True, if the supergroup chat is a forum (has topics enabled)", "type": [ "bool" ], - "optional": true, - "name": "is_forum", - "description": "Optional. True, if the supergroup chat is a forum (has topics enabled)" + "name": "is_forum" }, { + "optional": false, + "description": "Identifier of the accent color for the chat name and backgrounds of the chat photo, reply header, and link preview. See accent colors for more details.", "type": [ - "ChatPhoto" + "int" + ], + "name": "accent_color_id" + }, + { + "optional": false, + "description": "The maximum number of reactions that can be set on a message in the chat", + "type": [ + "int" ], + "name": "max_reaction_count" + }, + { "optional": true, - "name": "photo", - "description": "Optional. Chat photo. Returned only in getChat." + "description": "Optional. Chat photo", + "type": [ + "ChatPhoto" + ], + "name": "photo" }, { + "optional": true, + "description": "Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels", "type": [ [ "array", @@ -450,51 +546,51 @@ ] ] ], - "optional": true, - "name": "active_usernames", - "description": "Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels. Returned only in getChat." + "name": "active_usernames" }, { + "optional": true, + "description": "Optional. For private chats, the date of birth of the user", "type": [ "Birthdate" ], - "optional": true, - "name": "birthdate", - "description": "Optional. For private chats, the date of birth of the user. Returned only in getChat." + "name": "birthdate" }, { + "optional": true, + "description": "Optional. For private chats with business accounts, the intro of the business", "type": [ "BusinessIntro" ], - "optional": true, - "name": "business_intro", - "description": "Optional. For private chats with business accounts, the intro of the business. Returned only in getChat." + "name": "business_intro" }, { + "optional": true, + "description": "Optional. For private chats with business accounts, the location of the business", "type": [ "BusinessLocation" ], - "optional": true, - "name": "business_location", - "description": "Optional. For private chats with business accounts, the location of the business. Returned only in getChat." + "name": "business_location" }, { + "optional": true, + "description": "Optional. For private chats with business accounts, the opening hours of the business", "type": [ "BusinessOpeningHours" ], - "optional": true, - "name": "business_opening_hours", - "description": "Optional. For private chats with business accounts, the opening hours of the business. Returned only in getChat." + "name": "business_opening_hours" }, { + "optional": true, + "description": "Optional. For private chats, the personal channel of the user", "type": [ "Chat" ], - "optional": true, - "name": "personal_chat", - "description": "Optional. For private chats, the personal channel of the user. Returned only in getChat." + "name": "personal_chat" }, { + "optional": true, + "description": "Optional. List of available reactions allowed in the chat. If omitted, then all emoji reactions are allowed.", "type": [ [ "array", @@ -503,417 +599,417 @@ ] ] ], - "optional": true, - "name": "available_reactions", - "description": "Optional. List of available reactions allowed in the chat. If omitted, then all emoji reactions are allowed. Returned only in getChat." + "name": "available_reactions" }, { - "type": [ - "int" - ], "optional": true, - "name": "accent_color_id", - "description": "Optional. Identifier of the accent color for the chat name and backgrounds of the chat photo, reply header, and link preview. See accent colors for more details. Returned only in getChat. Always returned in getChat." - }, - { + "description": "Optional. Custom emoji identifier of the emoji chosen by the chat for the reply header and link preview background", "type": [ "str" ], - "optional": true, - "name": "background_custom_emoji_id", - "description": "Optional. Custom emoji identifier of emoji chosen by the chat for the reply header and link preview background. Returned only in getChat." + "name": "background_custom_emoji_id" }, { + "optional": true, + "description": "Optional. Identifier of the accent color for the chat's profile background. See profile accent colors for more details.", "type": [ "int" ], - "optional": true, - "name": "profile_accent_color_id", - "description": "Optional. Identifier of the accent color for the chat's profile background. See profile accent colors for more details. Returned only in getChat." + "name": "profile_accent_color_id" }, { + "optional": true, + "description": "Optional. Custom emoji identifier of the emoji chosen by the chat for its profile background", "type": [ "str" ], - "optional": true, - "name": "profile_background_custom_emoji_id", - "description": "Optional. Custom emoji identifier of the emoji chosen by the chat for its profile background. Returned only in getChat." + "name": "profile_background_custom_emoji_id" }, { + "optional": true, + "description": "Optional. Custom emoji identifier of the emoji status of the chat or the other party in a private chat", "type": [ "str" ], - "optional": true, - "name": "emoji_status_custom_emoji_id", - "description": "Optional. Custom emoji identifier of the emoji status of the chat or the other party in a private chat. Returned only in getChat." + "name": "emoji_status_custom_emoji_id" }, { + "optional": true, + "description": "Optional. Expiration date of the emoji status of the chat or the other party in a private chat, in Unix time, if any", "type": [ "int" ], - "optional": true, - "name": "emoji_status_expiration_date", - "description": "Optional. Expiration date of the emoji status of the chat or the other party in a private chat, in Unix time, if any. Returned only in getChat." + "name": "emoji_status_expiration_date" }, { + "optional": true, + "description": "Optional. Bio of the other party in a private chat", "type": [ "str" ], - "optional": true, - "name": "bio", - "description": "Optional. Bio of the other party in a private chat. Returned only in getChat." + "name": "bio" }, { + "optional": true, + "description": "Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?id= links only in chats with the user", "type": [ "bool" ], - "optional": true, - "name": "has_private_forwards", - "description": "Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?id= links only in chats with the user. Returned only in getChat." + "name": "has_private_forwards" }, { + "optional": true, + "description": "Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in the private chat", "type": [ "bool" ], - "optional": true, - "name": "has_restricted_voice_and_video_messages", - "description": "Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in the private chat. Returned only in getChat." + "name": "has_restricted_voice_and_video_messages" }, { + "optional": true, + "description": "Optional. True, if users need to join the supergroup before they can send messages", "type": [ "bool" ], - "optional": true, - "name": "join_to_send_messages", - "description": "Optional. True, if users need to join the supergroup before they can send messages. Returned only in getChat." + "name": "join_to_send_messages" }, { + "optional": true, + "description": "Optional. True, if all users directly joining the supergroup without using an invite link need to be approved by supergroup administrators", "type": [ "bool" ], - "optional": true, - "name": "join_by_request", - "description": "Optional. True, if all users directly joining the supergroup need to be approved by supergroup administrators. Returned only in getChat." + "name": "join_by_request" }, { + "optional": true, + "description": "Optional. Description, for groups, supergroups and channel chats", "type": [ "str" ], - "optional": true, - "name": "description", - "description": "Optional. Description, for groups, supergroups and channel chats. Returned only in getChat." + "name": "description" }, { + "optional": true, + "description": "Optional. Primary invite link, for groups, supergroups and channel chats", "type": [ "str" ], - "optional": true, - "name": "invite_link", - "description": "Optional. Primary invite link, for groups, supergroups and channel chats. Returned only in getChat." + "name": "invite_link" }, { + "optional": true, + "description": "Optional. The most recent pinned message (by sending date)", "type": [ "Message" ], - "optional": true, - "name": "pinned_message", - "description": "Optional. The most recent pinned message (by sending date). Returned only in getChat." + "name": "pinned_message" }, { + "optional": true, + "description": "Optional. Default chat member permissions, for groups and supergroups", "type": [ "ChatPermissions" ], + "name": "permissions" + }, + { "optional": true, - "name": "permissions", - "description": "Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat." + "description": "Optional. True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats.", + "type": [ + "bool" + ], + "name": "can_send_paid_media" }, { + "optional": true, + "description": "Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds", "type": [ "int" ], - "optional": true, - "name": "slow_mode_delay", - "description": "Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds. Returned only in getChat." + "name": "slow_mode_delay" }, { + "optional": true, + "description": "Optional. For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions", "type": [ "int" ], - "optional": true, - "name": "unrestrict_boost_count", - "description": "Optional. For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions. Returned only in getChat." + "name": "unrestrict_boost_count" }, { + "optional": true, + "description": "Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds", "type": [ "int" ], - "optional": true, - "name": "message_auto_delete_time", - "description": "Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds. Returned only in getChat." + "name": "message_auto_delete_time" }, { + "optional": true, + "description": "Optional. True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators.", "type": [ "bool" ], - "optional": true, - "name": "has_aggressive_anti_spam_enabled", - "description": "Optional. True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators. Returned only in getChat." + "name": "has_aggressive_anti_spam_enabled" }, { + "optional": true, + "description": "Optional. True, if non-administrators can only get the list of bots and administrators in the chat", "type": [ "bool" ], - "optional": true, - "name": "has_hidden_members", - "description": "Optional. True, if non-administrators can only get the list of bots and administrators in the chat. Returned only in getChat." + "name": "has_hidden_members" }, { + "optional": true, + "description": "Optional. True, if messages from the chat can't be forwarded to other chats", "type": [ "bool" ], - "optional": true, - "name": "has_protected_content", - "description": "Optional. True, if messages from the chat can't be forwarded to other chats. Returned only in getChat." + "name": "has_protected_content" }, { + "optional": true, + "description": "Optional. True, if new chat members will have access to old messages; available only to chat administrators", "type": [ "bool" ], - "optional": true, - "name": "has_visible_history", - "description": "Optional. True, if new chat members will have access to old messages; available only to chat administrators. Returned only in getChat." + "name": "has_visible_history" }, { + "optional": true, + "description": "Optional. For supergroups, name of the group sticker set", "type": [ "str" ], - "optional": true, - "name": "sticker_set_name", - "description": "Optional. For supergroups, name of group sticker set. Returned only in getChat." + "name": "sticker_set_name" }, { + "optional": true, + "description": "Optional. True, if the bot can change the group sticker set", "type": [ "bool" ], - "optional": true, - "name": "can_set_sticker_set", - "description": "Optional. True, if the bot can change the group sticker set. Returned only in getChat." + "name": "can_set_sticker_set" }, { + "optional": true, + "description": "Optional. For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this set can be used by all users and bots in the group.", "type": [ "str" ], - "optional": true, - "name": "custom_emoji_sticker_set_name", - "description": "Optional. For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this set can be used by all users and bots in the group. Returned only in getChat." + "name": "custom_emoji_sticker_set_name" }, { + "optional": true, + "description": "Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats. This identifier may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.", "type": [ "int" ], - "optional": true, - "name": "linked_chat_id", - "description": "Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats. This identifier may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier. Returned only in getChat." + "name": "linked_chat_id" }, { + "optional": true, + "description": "Optional. For supergroups, the location to which the supergroup is connected", "type": [ "ChatLocation" ], - "optional": true, - "name": "location", - "description": "Optional. For supergroups, the location to which the supergroup is connected. Returned only in getChat." + "name": "location" } ], - "name": "Chat", - "description": "This object represents a chat." + "description": "This object contains full information about a chat.", + "name": "ChatFullInfo" }, { "params": [ { + "optional": false, + "description": "Unique message identifier inside this chat. In specific instances (e.g., message containing a video sent to a big chat), the server might automatically schedule a message instead of sending it immediately. In such cases, this field will be 0 and the relevant message will be unusable until it is actually sent", "type": [ "int" ], - "optional": false, - "name": "message_id", - "description": "Unique message identifier inside this chat" + "name": "message_id" }, { + "optional": true, + "description": "Optional. Unique identifier of a message thread to which the message belongs; for supergroups only", "type": [ "int" ], - "optional": true, - "name": "message_thread_id", - "description": "Optional. Unique identifier of a message thread to which the message belongs; for supergroups only" + "name": "message_thread_id" }, { + "optional": true, + "description": "Optional. Sender of the message; may be empty for messages sent to channels. For backward compatibility, if the message was sent on behalf of a chat, the field contains a fake sender user in non-channel chats", "type": [ "User" ], - "optional": true, - "name": "from", - "description": "Optional. Sender of the message; empty for messages sent to channels. For backward compatibility, the field contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat." + "name": "from" }, { + "optional": true, + "description": "Optional. Sender of the message when sent on behalf of a chat. For example, the supergroup itself for messages sent by its anonymous administrators or a linked channel for messages automatically forwarded to the channel's discussion group. For backward compatibility, if the message was sent on behalf of a chat, the field from contains a fake sender user in non-channel chats.", "type": [ "Chat" ], - "optional": true, - "name": "sender_chat", - "description": "Optional. Sender of the message, sent on behalf of a chat. For example, the channel itself for channel posts, the supergroup itself for messages from anonymous group administrators, the linked channel for messages automatically forwarded to the discussion group. For backward compatibility, the field from contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat." + "name": "sender_chat" }, { + "optional": true, + "description": "Optional. If the sender of the message boosted the chat, the number of boosts added by the user", "type": [ "int" ], - "optional": true, - "name": "sender_boost_count", - "description": "Optional. If the sender of the message boosted the chat, the number of boosts added by the user" + "name": "sender_boost_count" }, { + "optional": true, + "description": "Optional. The bot that actually sent the message on behalf of the business account. Available only for outgoing messages sent on behalf of the connected business account.", "type": [ "User" ], - "optional": true, - "name": "sender_business_bot", - "description": "Optional. The bot that actually sent the message on behalf of the business account. Available only for outgoing messages sent on behalf of the connected business account." + "name": "sender_business_bot" }, { + "optional": false, + "description": "Date the message was sent in Unix time. It is always a positive number, representing a valid date.", "type": [ "int" ], - "optional": false, - "name": "date", - "description": "Date the message was sent in Unix time. It is always a positive number, representing a valid date." + "name": "date" }, { + "optional": true, + "description": "Optional. Unique identifier of the business connection from which the message was received. If non-empty, the message belongs to a chat of the corresponding business account that is independent from any potential bot chat which might share the same identifier.", "type": [ "str" ], - "optional": true, - "name": "business_connection_id", - "description": "Optional. Unique identifier of the business connection from which the message was received. If non-empty, the message belongs to a chat of the corresponding business account that is independent from any potential bot chat which might share the same identifier." + "name": "business_connection_id" }, { + "optional": false, + "description": "Chat the message belongs to", "type": [ "Chat" ], - "optional": false, - "name": "chat", - "description": "Chat the message belongs to" + "name": "chat" }, { + "optional": true, + "description": "Optional. Information about the original message for forwarded messages", "type": [ "MessageOrigin" ], - "optional": true, - "name": "forward_origin", - "description": "Optional. Information about the original message for forwarded messages" + "name": "forward_origin" }, { + "optional": true, + "description": "Optional. True, if the message is sent to a forum topic", "type": [ "bool" ], - "optional": true, - "name": "is_topic_message", - "description": "Optional. True, if the message is sent to a forum topic" + "name": "is_topic_message" }, { + "optional": true, + "description": "Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion group", "type": [ "bool" ], - "optional": true, - "name": "is_automatic_forward", - "description": "Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion group" + "name": "is_automatic_forward" }, { + "optional": true, + "description": "Optional. For replies in the same chat and message thread, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.", "type": [ "Message" ], - "optional": true, - "name": "reply_to_message", - "description": "Optional. For replies in the same chat and message thread, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply." + "name": "reply_to_message" }, { + "optional": true, + "description": "Optional. Information about the message that is being replied to, which may come from another chat or forum topic", "type": [ "ExternalReplyInfo" ], - "optional": true, - "name": "external_reply", - "description": "Optional. Information about the message that is being replied to, which may come from another chat or forum topic" + "name": "external_reply" }, { + "optional": true, + "description": "Optional. For replies that quote part of the original message, the quoted part of the message", "type": [ "TextQuote" ], - "optional": true, - "name": "quote", - "description": "Optional. For replies that quote part of the original message, the quoted part of the message" + "name": "quote" }, { + "optional": true, + "description": "Optional. For replies to a story, the original story", "type": [ "Story" ], - "optional": true, - "name": "reply_to_story", - "description": "Optional. For replies to a story, the original story" + "name": "reply_to_story" }, { + "optional": true, + "description": "Optional. Bot through which the message was sent", "type": [ "User" ], - "optional": true, - "name": "via_bot", - "description": "Optional. Bot through which the message was sent" + "name": "via_bot" }, { + "optional": true, + "description": "Optional. Date the message was last edited in Unix time", "type": [ "int" ], - "optional": true, - "name": "edit_date", - "description": "Optional. Date the message was last edited in Unix time" + "name": "edit_date" }, { + "optional": true, + "description": "Optional. True, if the message can't be forwarded", "type": [ "bool" ], - "optional": true, - "name": "has_protected_content", - "description": "Optional. True, if the message can't be forwarded" + "name": "has_protected_content" }, { + "optional": true, + "description": "Optional. True, if the message was sent by an implicit action, for example, as an away or a greeting business message, or as a scheduled message", "type": [ "bool" ], - "optional": true, - "name": "is_from_offline", - "description": "Optional. True, if the message was sent by an implicit action, for example, as an away or a greeting business message, or as a scheduled message" + "name": "is_from_offline" }, { + "optional": true, + "description": "Optional. The unique identifier of a media message group this message belongs to", "type": [ "str" ], - "optional": true, - "name": "media_group_id", - "description": "Optional. The unique identifier of a media message group this message belongs to" + "name": "media_group_id" }, { + "optional": true, + "description": "Optional. Signature of the post author for messages in channels, or the custom title of an anonymous group administrator", "type": [ "str" ], - "optional": true, - "name": "author_signature", - "description": "Optional. Signature of the post author for messages in channels, or the custom title of an anonymous group administrator" + "name": "author_signature" }, { + "optional": true, + "description": "Optional. For text messages, the actual UTF-8 text of the message", "type": [ "str" ], - "optional": true, - "name": "text", - "description": "Optional. For text messages, the actual UTF-8 text of the message" + "name": "text" }, { + "optional": true, + "description": "Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text", "type": [ [ "array", @@ -922,43 +1018,59 @@ ] ] ], - "optional": true, - "name": "entities", - "description": "Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text" + "name": "entities" }, { + "optional": true, + "description": "Optional. Options used for link preview generation for the message, if it is a text message and link preview options were changed", "type": [ "LinkPreviewOptions" ], + "name": "link_preview_options" + }, + { "optional": true, - "name": "link_preview_options", - "description": "Optional. Options used for link preview generation for the message, if it is a text message and link preview options were changed" + "description": "Optional. Unique identifier of the message effect added to the message", + "type": [ + "str" + ], + "name": "effect_id" }, { + "optional": true, + "description": "Optional. Message is an animation, information about the animation. For backward compatibility, when this field is set, the document field will also be set", "type": [ "Animation" ], - "optional": true, - "name": "animation", - "description": "Optional. Message is an animation, information about the animation. For backward compatibility, when this field is set, the document field will also be set" + "name": "animation" }, { + "optional": true, + "description": "Optional. Message is an audio file, information about the file", "type": [ "Audio" ], - "optional": true, - "name": "audio", - "description": "Optional. Message is an audio file, information about the file" + "name": "audio" }, { + "optional": true, + "description": "Optional. Message is a general file, information about the file", "type": [ "Document" ], + "name": "document" + }, + { "optional": true, - "name": "document", - "description": "Optional. Message is a general file, information about the file" + "description": "Optional. Message contains paid media; information about the paid media", + "type": [ + "PaidMediaInfo" + ], + "name": "paid_media" }, { + "optional": true, + "description": "Optional. Message is a photo, available sizes of the photo", "type": [ [ "array", @@ -967,59 +1079,59 @@ ] ] ], - "optional": true, - "name": "photo", - "description": "Optional. Message is a photo, available sizes of the photo" + "name": "photo" }, { + "optional": true, + "description": "Optional. Message is a sticker, information about the sticker", "type": [ "Sticker" ], - "optional": true, - "name": "sticker", - "description": "Optional. Message is a sticker, information about the sticker" + "name": "sticker" }, { + "optional": true, + "description": "Optional. Message is a forwarded story", "type": [ "Story" ], - "optional": true, - "name": "story", - "description": "Optional. Message is a forwarded story" + "name": "story" }, { + "optional": true, + "description": "Optional. Message is a video, information about the video", "type": [ "Video" ], - "optional": true, - "name": "video", - "description": "Optional. Message is a video, information about the video" + "name": "video" }, { + "optional": true, + "description": "Optional. Message is a video note, information about the video message", "type": [ "VideoNote" ], - "optional": true, - "name": "video_note", - "description": "Optional. Message is a video note, information about the video message" + "name": "video_note" }, { + "optional": true, + "description": "Optional. Message is a voice message, information about the file", "type": [ "Voice" ], - "optional": true, - "name": "voice", - "description": "Optional. Message is a voice message, information about the file" + "name": "voice" }, { + "optional": true, + "description": "Optional. Caption for the animation, audio, document, paid media, photo, video or voice", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "Optional. Caption for the animation, audio, document, photo, video or voice" + "name": "caption" }, { + "optional": true, + "description": "Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption", "type": [ [ "array", @@ -1028,67 +1140,75 @@ ] ] ], - "optional": true, - "name": "caption_entities", - "description": "Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption" + "name": "caption_entities" }, { + "optional": true, + "description": "Optional. True, if the caption must be shown above the message media", "type": [ "bool" ], + "name": "show_caption_above_media" + }, + { "optional": true, - "name": "has_media_spoiler", - "description": "Optional. True, if the message media is covered by a spoiler animation" + "description": "Optional. True, if the message media is covered by a spoiler animation", + "type": [ + "bool" + ], + "name": "has_media_spoiler" }, { + "optional": true, + "description": "Optional. Message is a shared contact, information about the contact", "type": [ "Contact" ], - "optional": true, - "name": "contact", - "description": "Optional. Message is a shared contact, information about the contact" + "name": "contact" }, { + "optional": true, + "description": "Optional. Message is a dice with random value", "type": [ "Dice" ], - "optional": true, - "name": "dice", - "description": "Optional. Message is a dice with random value" + "name": "dice" }, { + "optional": true, + "description": "Optional. Message is a game, information about the game. More about games »", "type": [ "Game" ], - "optional": true, - "name": "game", - "description": "Optional. Message is a game, information about the game. More about games »" + "name": "game" }, { + "optional": true, + "description": "Optional. Message is a native poll, information about the poll", "type": [ "Poll" ], - "optional": true, - "name": "poll", - "description": "Optional. Message is a native poll, information about the poll" + "name": "poll" }, { + "optional": true, + "description": "Optional. Message is a venue, information about the venue. For backward compatibility, when this field is set, the location field will also be set", "type": [ "Venue" ], - "optional": true, - "name": "venue", - "description": "Optional. Message is a venue, information about the venue. For backward compatibility, when this field is set, the location field will also be set" + "name": "venue" }, { + "optional": true, + "description": "Optional. Message is a shared location, information about the location", "type": [ "Location" ], - "optional": true, - "name": "location", - "description": "Optional. Message is a shared location, information about the location" + "name": "location" }, { + "optional": true, + "description": "Optional. New members that were added to the group or supergroup and information about them (the bot itself may be one of these members)", "type": [ [ "array", @@ -1097,27 +1217,27 @@ ] ] ], - "optional": true, - "name": "new_chat_members", - "description": "Optional. New members that were added to the group or supergroup and information about them (the bot itself may be one of these members)" + "name": "new_chat_members" }, { + "optional": true, + "description": "Optional. A member was removed from the group, information about them (this member may be the bot itself)", "type": [ "User" ], - "optional": true, - "name": "left_chat_member", - "description": "Optional. A member was removed from the group, information about them (this member may be the bot itself)" + "name": "left_chat_member" }, { + "optional": true, + "description": "Optional. A chat title was changed to this value", "type": [ "str" ], - "optional": true, - "name": "new_chat_title", - "description": "Optional. A chat title was changed to this value" + "name": "new_chat_title" }, { + "optional": true, + "description": "Optional. A chat photo was change to this value", "type": [ [ "array", @@ -1126,395 +1246,411 @@ ] ] ], - "optional": true, - "name": "new_chat_photo", - "description": "Optional. A chat photo was change to this value" + "name": "new_chat_photo" }, { + "optional": true, + "description": "Optional. Service message: the chat photo was deleted", "type": [ "bool" ], - "optional": true, - "name": "delete_chat_photo", - "description": "Optional. Service message: the chat photo was deleted" + "name": "delete_chat_photo" }, { + "optional": true, + "description": "Optional. Service message: the group has been created", "type": [ "bool" ], - "optional": true, - "name": "group_chat_created", - "description": "Optional. Service message: the group has been created" + "name": "group_chat_created" }, { + "optional": true, + "description": "Optional. Service message: the supergroup has been created. This field can't be received in a message coming through updates, because bot can't be a member of a supergroup when it is created. It can only be found in reply_to_message if someone replies to a very first message in a directly created supergroup.", "type": [ "bool" ], - "optional": true, - "name": "supergroup_chat_created", - "description": "Optional. Service message: the supergroup has been created. This field can't be received in a message coming through updates, because bot can't be a member of a supergroup when it is created. It can only be found in reply_to_message if someone replies to a very first message in a directly created supergroup." + "name": "supergroup_chat_created" }, { + "optional": true, + "description": "Optional. Service message: the channel has been created. This field can't be received in a message coming through updates, because bot can't be a member of a channel when it is created. It can only be found in reply_to_message if someone replies to a very first message in a channel.", "type": [ "bool" ], - "optional": true, - "name": "channel_chat_created", - "description": "Optional. Service message: the channel has been created. This field can't be received in a message coming through updates, because bot can't be a member of a channel when it is created. It can only be found in reply_to_message if someone replies to a very first message in a channel." + "name": "channel_chat_created" }, { + "optional": true, + "description": "Optional. Service message: auto-delete timer settings changed in the chat", "type": [ "MessageAutoDeleteTimerChanged" ], - "optional": true, - "name": "message_auto_delete_timer_changed", - "description": "Optional. Service message: auto-delete timer settings changed in the chat" + "name": "message_auto_delete_timer_changed" }, { + "optional": true, + "description": "Optional. The group has been migrated to a supergroup with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.", "type": [ "int" ], - "optional": true, - "name": "migrate_to_chat_id", - "description": "Optional. The group has been migrated to a supergroup with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier." + "name": "migrate_to_chat_id" }, { + "optional": true, + "description": "Optional. The supergroup has been migrated from a group with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.", "type": [ "int" ], - "optional": true, - "name": "migrate_from_chat_id", - "description": "Optional. The supergroup has been migrated from a group with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier." + "name": "migrate_from_chat_id" }, { + "optional": true, + "description": "Optional. Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.", "type": [ "MaybeInaccessibleMessage" ], - "optional": true, - "name": "pinned_message", - "description": "Optional. Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply." + "name": "pinned_message" }, { + "optional": true, + "description": "Optional. Message is an invoice for a payment, information about the invoice. More about payments »", "type": [ "Invoice" ], - "optional": true, - "name": "invoice", - "description": "Optional. Message is an invoice for a payment, information about the invoice. More about payments »" + "name": "invoice" }, { + "optional": true, + "description": "Optional. Message is a service message about a successful payment, information about the payment. More about payments »", "type": [ "SuccessfulPayment" ], + "name": "successful_payment" + }, + { "optional": true, - "name": "successful_payment", - "description": "Optional. Message is a service message about a successful payment, information about the payment. More about payments »" + "description": "Optional. Message is a service message about a refunded payment, information about the payment. More about payments »", + "type": [ + "RefundedPayment" + ], + "name": "refunded_payment" }, { + "optional": true, + "description": "Optional. Service message: users were shared with the bot", "type": [ "UsersShared" ], - "optional": true, - "name": "users_shared", - "description": "Optional. Service message: users were shared with the bot" + "name": "users_shared" }, { + "optional": true, + "description": "Optional. Service message: a chat was shared with the bot", "type": [ "ChatShared" ], - "optional": true, - "name": "chat_shared", - "description": "Optional. Service message: a chat was shared with the bot" + "name": "chat_shared" }, { + "optional": true, + "description": "Optional. The domain name of the website on which the user has logged in. More about Telegram Login »", "type": [ "str" ], - "optional": true, - "name": "connected_website", - "description": "Optional. The domain name of the website on which the user has logged in. More about Telegram Login »" + "name": "connected_website" }, { + "optional": true, + "description": "Optional. Service message: the user allowed the bot to write messages after adding it to the attachment or side menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess", "type": [ "WriteAccessAllowed" ], - "optional": true, - "name": "write_access_allowed", - "description": "Optional. Service message: the user allowed the bot to write messages after adding it to the attachment or side menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess" + "name": "write_access_allowed" }, { + "optional": true, + "description": "Optional. Telegram Passport data", "type": [ "PassportData" ], - "optional": true, - "name": "passport_data", - "description": "Optional. Telegram Passport data" + "name": "passport_data" }, { + "optional": true, + "description": "Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live Location.", "type": [ "ProximityAlertTriggered" ], - "optional": true, - "name": "proximity_alert_triggered", - "description": "Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live Location." + "name": "proximity_alert_triggered" }, { + "optional": true, + "description": "Optional. Service message: user boosted the chat", "type": [ "ChatBoostAdded" ], + "name": "boost_added" + }, + { "optional": true, - "name": "boost_added", - "description": "Optional. Service message: user boosted the chat" + "description": "Optional. Service message: chat background set", + "type": [ + "ChatBackground" + ], + "name": "chat_background_set" }, { + "optional": true, + "description": "Optional. Service message: forum topic created", "type": [ "ForumTopicCreated" ], - "optional": true, - "name": "forum_topic_created", - "description": "Optional. Service message: forum topic created" + "name": "forum_topic_created" }, { + "optional": true, + "description": "Optional. Service message: forum topic edited", "type": [ "ForumTopicEdited" ], - "optional": true, - "name": "forum_topic_edited", - "description": "Optional. Service message: forum topic edited" + "name": "forum_topic_edited" }, { + "optional": true, + "description": "Optional. Service message: forum topic closed", "type": [ "ForumTopicClosed" ], - "optional": true, - "name": "forum_topic_closed", - "description": "Optional. Service message: forum topic closed" + "name": "forum_topic_closed" }, { + "optional": true, + "description": "Optional. Service message: forum topic reopened", "type": [ "ForumTopicReopened" ], - "optional": true, - "name": "forum_topic_reopened", - "description": "Optional. Service message: forum topic reopened" + "name": "forum_topic_reopened" }, { + "optional": true, + "description": "Optional. Service message: the 'General' forum topic hidden", "type": [ "GeneralForumTopicHidden" ], - "optional": true, - "name": "general_forum_topic_hidden", - "description": "Optional. Service message: the 'General' forum topic hidden" + "name": "general_forum_topic_hidden" }, { + "optional": true, + "description": "Optional. Service message: the 'General' forum topic unhidden", "type": [ "GeneralForumTopicUnhidden" ], - "optional": true, - "name": "general_forum_topic_unhidden", - "description": "Optional. Service message: the 'General' forum topic unhidden" + "name": "general_forum_topic_unhidden" }, { + "optional": true, + "description": "Optional. Service message: a scheduled giveaway was created", "type": [ "GiveawayCreated" ], - "optional": true, - "name": "giveaway_created", - "description": "Optional. Service message: a scheduled giveaway was created" + "name": "giveaway_created" }, { + "optional": true, + "description": "Optional. The message is a scheduled giveaway message", "type": [ "Giveaway" ], - "optional": true, - "name": "giveaway", - "description": "Optional. The message is a scheduled giveaway message" + "name": "giveaway" }, { + "optional": true, + "description": "Optional. A giveaway with public winners was completed", "type": [ "GiveawayWinners" ], - "optional": true, - "name": "giveaway_winners", - "description": "Optional. A giveaway with public winners was completed" + "name": "giveaway_winners" }, { + "optional": true, + "description": "Optional. Service message: a giveaway without public winners was completed", "type": [ "GiveawayCompleted" ], - "optional": true, - "name": "giveaway_completed", - "description": "Optional. Service message: a giveaway without public winners was completed" + "name": "giveaway_completed" }, { + "optional": true, + "description": "Optional. Service message: video chat scheduled", "type": [ "VideoChatScheduled" ], - "optional": true, - "name": "video_chat_scheduled", - "description": "Optional. Service message: video chat scheduled" + "name": "video_chat_scheduled" }, { + "optional": true, + "description": "Optional. Service message: video chat started", "type": [ "VideoChatStarted" ], - "optional": true, - "name": "video_chat_started", - "description": "Optional. Service message: video chat started" + "name": "video_chat_started" }, { + "optional": true, + "description": "Optional. Service message: video chat ended", "type": [ "VideoChatEnded" ], - "optional": true, - "name": "video_chat_ended", - "description": "Optional. Service message: video chat ended" + "name": "video_chat_ended" }, { + "optional": true, + "description": "Optional. Service message: new participants invited to a video chat", "type": [ "VideoChatParticipantsInvited" ], - "optional": true, - "name": "video_chat_participants_invited", - "description": "Optional. Service message: new participants invited to a video chat" + "name": "video_chat_participants_invited" }, { + "optional": true, + "description": "Optional. Service message: data sent by a Web App", "type": [ "WebAppData" ], - "optional": true, - "name": "web_app_data", - "description": "Optional. Service message: data sent by a Web App" + "name": "web_app_data" }, { + "optional": true, + "description": "Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons.", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons." + "name": "reply_markup" } ], - "name": "Message", - "description": "This object represents a message." + "description": "This object represents a message.", + "name": "Message" }, { "params": [ { + "optional": false, + "description": "Unique message identifier. In specific instances (e.g., message containing a video sent to a big chat), the server might automatically schedule a message instead of sending it immediately. In such cases, this field will be 0 and the relevant message will be unusable until it is actually sent", "type": [ "int" ], - "optional": false, - "name": "message_id", - "description": "Unique message identifier" + "name": "message_id" } ], - "name": "MessageId", - "description": "This object represents a unique message identifier." + "description": "This object represents a unique message identifier.", + "name": "MessageId" }, { "params": [ { + "optional": false, + "description": "Chat the message belonged to", "type": [ "Chat" ], - "optional": false, - "name": "chat", - "description": "Chat the message belonged to" + "name": "chat" }, { + "optional": false, + "description": "Unique message identifier inside the chat", "type": [ "int" ], - "optional": false, - "name": "message_id", - "description": "Unique message identifier inside the chat" + "name": "message_id" }, { + "optional": false, + "description": "Always 0. The field can be used to differentiate regular and inaccessible messages.", "type": [ "int" ], - "optional": false, - "name": "date", - "description": "Always 0. The field can be used to differentiate regular and inaccessible messages." + "name": "date" } ], - "name": "InaccessibleMessage", - "description": "This object describes a message that was deleted or is otherwise inaccessible to the bot." + "description": "This object describes a message that was deleted or is otherwise inaccessible to the bot.", + "name": "InaccessibleMessage" }, { "params": [ { + "optional": false, + "description": "Type of the entity. Currently, can be “mention” (@username), “hashtag” (#hashtag or #hashtag@chatusername), “cashtag” ($USD or $USD@chatusername), “bot_command” (/start@jobs_bot), “url” (https://telegram.org), “email” (do-not-reply@telegram.org), “phone_number” (+1-212-555-0123), “bold” (bold text), “italic” (italic text), “underline” (underlined text), “strikethrough” (strikethrough text), “spoiler” (spoiler message), “blockquote” (block quotation), “expandable_blockquote” (collapsed-by-default block quotation), “code” (monowidth string), “pre” (monowidth block), “text_link” (for clickable text URLs), “text_mention” (for users without usernames), “custom_emoji” (for inline custom emoji stickers)", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the entity. Currently, can be “mention” (@username), “hashtag” (#hashtag), “cashtag” ($USD), “bot_command” (/start@jobs_bot), “url” (https://telegram.org), “email” (do-not-reply@telegram.org), “phone_number” (+1-212-555-0123), “bold” (bold text), “italic” (italic text), “underline” (underlined text), “strikethrough” (strikethrough text), “spoiler” (spoiler message), “blockquote” (block quotation), “code” (monowidth string), “pre” (monowidth block), “text_link” (for clickable text URLs), “text_mention” (for users without usernames), “custom_emoji” (for inline custom emoji stickers)" + "name": "type" }, { + "optional": false, + "description": "Offset in UTF-16 code units to the start of the entity", "type": [ "int" ], - "optional": false, - "name": "offset", - "description": "Offset in UTF-16 code units to the start of the entity" + "name": "offset" }, { + "optional": false, + "description": "Length of the entity in UTF-16 code units", "type": [ "int" ], - "optional": false, - "name": "length", - "description": "Length of the entity in UTF-16 code units" + "name": "length" }, { + "optional": true, + "description": "Optional. For “text_link” only, URL that will be opened after user taps on the text", "type": [ "str" ], - "optional": true, - "name": "url", - "description": "Optional. For “text_link” only, URL that will be opened after user taps on the text" + "name": "url" }, { + "optional": true, + "description": "Optional. For “text_mention” only, the mentioned user", "type": [ "User" ], - "optional": true, - "name": "user", - "description": "Optional. For “text_mention” only, the mentioned user" + "name": "user" }, { + "optional": true, + "description": "Optional. For “pre” only, the programming language of the entity text", "type": [ "str" ], - "optional": true, - "name": "language", - "description": "Optional. For “pre” only, the programming language of the entity text" + "name": "language" }, { + "optional": true, + "description": "Optional. For “custom_emoji” only, unique identifier of the custom emoji. Use getCustomEmojiStickers to get full information about the sticker", "type": [ "str" ], - "optional": true, - "name": "custom_emoji_id", - "description": "Optional. For “custom_emoji” only, unique identifier of the custom emoji. Use getCustomEmojiStickers to get full information about the sticker" + "name": "custom_emoji_id" } ], - "name": "MessageEntity", - "description": "This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc." + "description": "This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.", + "name": "MessageEntity" }, { "params": [ { + "optional": false, + "description": "Text of the quoted part of a message that is replied to by the given message", "type": [ "str" ], - "optional": false, - "name": "text", - "description": "Text of the quoted part of a message that is replied to by the given message" + "name": "text" }, { + "optional": true, + "description": "Optional. Special entities that appear in the quote. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are kept in quotes.", "type": [ [ "array", @@ -1523,89 +1659,97 @@ ] ] ], - "optional": true, - "name": "entities", - "description": "Optional. Special entities that appear in the quote. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are kept in quotes." + "name": "entities" }, { + "optional": false, + "description": "Approximate quote position in the original message in UTF-16 code units as specified by the sender", "type": [ "int" ], - "optional": false, - "name": "position", - "description": "Approximate quote position in the original message in UTF-16 code units as specified by the sender" + "name": "position" }, { + "optional": true, + "description": "Optional. True, if the quote was chosen manually by the message sender. Otherwise, the quote was added automatically by the server.", "type": [ "bool" ], - "optional": true, - "name": "is_manual", - "description": "Optional. True, if the quote was chosen manually by the message sender. Otherwise, the quote was added automatically by the server." + "name": "is_manual" } ], - "name": "TextQuote", - "description": "This object contains information about the quoted part of a message that is replied to by the given message." + "description": "This object contains information about the quoted part of a message that is replied to by the given message.", + "name": "TextQuote" }, { "params": [ { + "optional": false, + "description": "Origin of the message replied to by the given message", "type": [ "MessageOrigin" ], - "optional": false, - "name": "origin", - "description": "Origin of the message replied to by the given message" + "name": "origin" }, { + "optional": true, + "description": "Optional. Chat the original message belongs to. Available only if the chat is a supergroup or a channel.", "type": [ "Chat" ], - "optional": true, - "name": "chat", - "description": "Optional. Chat the original message belongs to. Available only if the chat is a supergroup or a channel." + "name": "chat" }, { + "optional": true, + "description": "Optional. Unique message identifier inside the original chat. Available only if the original chat is a supergroup or a channel.", "type": [ "int" ], - "optional": true, - "name": "message_id", - "description": "Optional. Unique message identifier inside the original chat. Available only if the original chat is a supergroup or a channel." + "name": "message_id" }, { + "optional": true, + "description": "Optional. Options used for link preview generation for the original message, if it is a text message", "type": [ "LinkPreviewOptions" ], - "optional": true, - "name": "link_preview_options", - "description": "Optional. Options used for link preview generation for the original message, if it is a text message" + "name": "link_preview_options" }, { + "optional": true, + "description": "Optional. Message is an animation, information about the animation", "type": [ "Animation" ], - "optional": true, - "name": "animation", - "description": "Optional. Message is an animation, information about the animation" + "name": "animation" }, { + "optional": true, + "description": "Optional. Message is an audio file, information about the file", "type": [ "Audio" ], - "optional": true, - "name": "audio", - "description": "Optional. Message is an audio file, information about the file" + "name": "audio" }, { + "optional": true, + "description": "Optional. Message is a general file, information about the file", "type": [ "Document" ], + "name": "document" + }, + { "optional": true, - "name": "document", - "description": "Optional. Message is a general file, information about the file" + "description": "Optional. Message contains paid media; information about the paid media", + "type": [ + "PaidMediaInfo" + ], + "name": "paid_media" }, { + "optional": true, + "description": "Optional. Message is a photo, available sizes of the photo", "type": [ [ "array", @@ -1614,178 +1758,178 @@ ] ] ], - "optional": true, - "name": "photo", - "description": "Optional. Message is a photo, available sizes of the photo" + "name": "photo" }, { + "optional": true, + "description": "Optional. Message is a sticker, information about the sticker", "type": [ "Sticker" ], - "optional": true, - "name": "sticker", - "description": "Optional. Message is a sticker, information about the sticker" + "name": "sticker" }, { + "optional": true, + "description": "Optional. Message is a forwarded story", "type": [ "Story" ], - "optional": true, - "name": "story", - "description": "Optional. Message is a forwarded story" + "name": "story" }, { + "optional": true, + "description": "Optional. Message is a video, information about the video", "type": [ "Video" ], - "optional": true, - "name": "video", - "description": "Optional. Message is a video, information about the video" + "name": "video" }, { + "optional": true, + "description": "Optional. Message is a video note, information about the video message", "type": [ "VideoNote" ], - "optional": true, - "name": "video_note", - "description": "Optional. Message is a video note, information about the video message" + "name": "video_note" }, { + "optional": true, + "description": "Optional. Message is a voice message, information about the file", "type": [ "Voice" ], - "optional": true, - "name": "voice", - "description": "Optional. Message is a voice message, information about the file" + "name": "voice" }, { + "optional": true, + "description": "Optional. True, if the message media is covered by a spoiler animation", "type": [ "bool" ], - "optional": true, - "name": "has_media_spoiler", - "description": "Optional. True, if the message media is covered by a spoiler animation" + "name": "has_media_spoiler" }, { + "optional": true, + "description": "Optional. Message is a shared contact, information about the contact", "type": [ "Contact" ], - "optional": true, - "name": "contact", - "description": "Optional. Message is a shared contact, information about the contact" + "name": "contact" }, { + "optional": true, + "description": "Optional. Message is a dice with random value", "type": [ "Dice" ], - "optional": true, - "name": "dice", - "description": "Optional. Message is a dice with random value" + "name": "dice" }, { + "optional": true, + "description": "Optional. Message is a game, information about the game. More about games »", "type": [ "Game" ], - "optional": true, - "name": "game", - "description": "Optional. Message is a game, information about the game. More about games »" + "name": "game" }, { + "optional": true, + "description": "Optional. Message is a scheduled giveaway, information about the giveaway", "type": [ "Giveaway" ], - "optional": true, - "name": "giveaway", - "description": "Optional. Message is a scheduled giveaway, information about the giveaway" + "name": "giveaway" }, { + "optional": true, + "description": "Optional. A giveaway with public winners was completed", "type": [ "GiveawayWinners" ], - "optional": true, - "name": "giveaway_winners", - "description": "Optional. A giveaway with public winners was completed" + "name": "giveaway_winners" }, { + "optional": true, + "description": "Optional. Message is an invoice for a payment, information about the invoice. More about payments »", "type": [ "Invoice" ], - "optional": true, - "name": "invoice", - "description": "Optional. Message is an invoice for a payment, information about the invoice. More about payments »" + "name": "invoice" }, { + "optional": true, + "description": "Optional. Message is a shared location, information about the location", "type": [ "Location" ], - "optional": true, - "name": "location", - "description": "Optional. Message is a shared location, information about the location" + "name": "location" }, { + "optional": true, + "description": "Optional. Message is a native poll, information about the poll", "type": [ "Poll" ], - "optional": true, - "name": "poll", - "description": "Optional. Message is a native poll, information about the poll" + "name": "poll" }, { + "optional": true, + "description": "Optional. Message is a venue, information about the venue", "type": [ "Venue" ], - "optional": true, - "name": "venue", - "description": "Optional. Message is a venue, information about the venue" + "name": "venue" } ], - "name": "ExternalReplyInfo", - "description": "This object contains information about a message that is being replied to, which may come from another chat or forum topic." + "description": "This object contains information about a message that is being replied to, which may come from another chat or forum topic.", + "name": "ExternalReplyInfo" }, { "params": [ { + "optional": false, + "description": "Identifier of the message that will be replied to in the current chat, or in the chat chat_id if it is specified", "type": [ "int" ], - "optional": false, - "name": "message_id", - "description": "Identifier of the message that will be replied to in the current chat, or in the chat chat_id if it is specified" + "name": "message_id" }, { + "optional": true, + "description": "Optional. If the message to be replied to is from a different chat, unique identifier for the chat or username of the channel (in the format @channelusername). Not supported for messages sent on behalf of a business account.", "type": [ "int", "str" ], - "optional": true, - "name": "chat_id", - "description": "Optional. If the message to be replied to is from a different chat, unique identifier for the chat or username of the channel (in the format @channelusername). Not supported for messages sent on behalf of a business account." + "name": "chat_id" }, { + "optional": true, + "description": "Optional. Pass True if the message should be sent even if the specified message to be replied to is not found. Always False for replies in another chat or forum topic. Always True for messages sent on behalf of a business account.", "type": [ "bool" ], - "optional": true, - "name": "allow_sending_without_reply", - "description": "Optional. Pass True if the message should be sent even if the specified message to be replied to is not found. Always False for replies in another chat or forum topic. Always True for messages sent on behalf of a business account." + "name": "allow_sending_without_reply" }, { + "optional": true, + "description": "Optional. Quoted part of the message to be replied to; 0-1024 characters after entities parsing. The quote must be an exact substring of the message to be replied to, including bold, italic, underline, strikethrough, spoiler, and custom_emoji entities. The message will fail to send if the quote isn't found in the original message.", "type": [ "str" ], - "optional": true, - "name": "quote", - "description": "Optional. Quoted part of the message to be replied to; 0-1024 characters after entities parsing. The quote must be an exact substring of the message to be replied to, including bold, italic, underline, strikethrough, spoiler, and custom_emoji entities. The message will fail to send if the quote isn't found in the original message." + "name": "quote" }, { + "optional": true, + "description": "Optional. Mode for parsing entities in the quote. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "quote_parse_mode", - "description": "Optional. Mode for parsing entities in the quote. See formatting options for more details." + "name": "quote_parse_mode" }, { + "optional": true, + "description": "Optional. A JSON-serialized list of special entities that appear in the quote. It can be specified instead of quote_parse_mode.", "type": [ [ "array", @@ -1794,2019 +1938,2086 @@ ] ] ], - "optional": true, - "name": "quote_entities", - "description": "Optional. A JSON-serialized list of special entities that appear in the quote. It can be specified instead of quote_parse_mode." + "name": "quote_entities" }, { + "optional": true, + "description": "Optional. Position of the quote in the original message in UTF-16 code units", "type": [ "int" ], - "optional": true, - "name": "quote_position", - "description": "Optional. Position of the quote in the original message in UTF-16 code units" + "name": "quote_position" } ], - "name": "ReplyParameters", - "description": "Describes reply parameters for the message that is being sent." + "description": "Describes reply parameters for the message that is being sent.", + "name": "ReplyParameters" }, { "params": [ { + "optional": false, + "description": "Type of the message origin, always “user”", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the message origin, always “user”" + "name": "type" }, { + "optional": false, + "description": "Date the message was sent originally in Unix time", "type": [ "int" ], - "optional": false, - "name": "date", - "description": "Date the message was sent originally in Unix time" + "name": "date" }, { + "optional": false, + "description": "User that sent the message originally", "type": [ "User" ], - "optional": false, - "name": "sender_user", - "description": "User that sent the message originally" + "name": "sender_user" } ], - "name": "MessageOriginUser", - "description": "The message was originally sent by a known user." + "description": "The message was originally sent by a known user.", + "name": "MessageOriginUser" }, { "params": [ { + "optional": false, + "description": "Type of the message origin, always “hidden_user”", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the message origin, always “hidden_user”" + "name": "type" }, { + "optional": false, + "description": "Date the message was sent originally in Unix time", "type": [ "int" ], - "optional": false, - "name": "date", - "description": "Date the message was sent originally in Unix time" + "name": "date" }, { + "optional": false, + "description": "Name of the user that sent the message originally", "type": [ "str" ], - "optional": false, - "name": "sender_user_name", - "description": "Name of the user that sent the message originally" + "name": "sender_user_name" } ], - "name": "MessageOriginHiddenUser", - "description": "The message was originally sent by an unknown user." + "description": "The message was originally sent by an unknown user.", + "name": "MessageOriginHiddenUser" }, { "params": [ { + "optional": false, + "description": "Type of the message origin, always “chat”", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the message origin, always “chat”" + "name": "type" }, { + "optional": false, + "description": "Date the message was sent originally in Unix time", "type": [ "int" ], - "optional": false, - "name": "date", - "description": "Date the message was sent originally in Unix time" + "name": "date" }, { + "optional": false, + "description": "Chat that sent the message originally", "type": [ "Chat" ], - "optional": false, - "name": "sender_chat", - "description": "Chat that sent the message originally" + "name": "sender_chat" }, { + "optional": true, + "description": "Optional. For messages originally sent by an anonymous chat administrator, original message author signature", "type": [ "str" ], - "optional": true, - "name": "author_signature", - "description": "Optional. For messages originally sent by an anonymous chat administrator, original message author signature" + "name": "author_signature" } ], - "name": "MessageOriginChat", - "description": "The message was originally sent on behalf of a chat to a group chat." + "description": "The message was originally sent on behalf of a chat to a group chat.", + "name": "MessageOriginChat" }, { "params": [ { + "optional": false, + "description": "Type of the message origin, always “channel”", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the message origin, always “channel”" + "name": "type" }, { + "optional": false, + "description": "Date the message was sent originally in Unix time", "type": [ "int" ], - "optional": false, - "name": "date", - "description": "Date the message was sent originally in Unix time" + "name": "date" }, { + "optional": false, + "description": "Channel chat to which the message was originally sent", "type": [ "Chat" ], - "optional": false, - "name": "chat", - "description": "Channel chat to which the message was originally sent" + "name": "chat" }, { + "optional": false, + "description": "Unique message identifier inside the chat", "type": [ "int" ], - "optional": false, - "name": "message_id", - "description": "Unique message identifier inside the chat" + "name": "message_id" }, { + "optional": true, + "description": "Optional. Signature of the original post author", "type": [ "str" ], - "optional": true, - "name": "author_signature", - "description": "Optional. Signature of the original post author" + "name": "author_signature" } ], - "name": "MessageOriginChannel", - "description": "The message was originally sent to a channel chat." + "description": "The message was originally sent to a channel chat.", + "name": "MessageOriginChannel" }, { "params": [ { + "optional": false, + "description": "Identifier for this file, which can be used to download or reuse the file", "type": [ "str" ], - "optional": false, - "name": "file_id", - "description": "Identifier for this file, which can be used to download or reuse the file" + "name": "file_id" }, { + "optional": false, + "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", "type": [ "str" ], - "optional": false, - "name": "file_unique_id", - "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." + "name": "file_unique_id" }, { + "optional": false, + "description": "Photo width", "type": [ "int" ], - "optional": false, - "name": "width", - "description": "Photo width" + "name": "width" }, { + "optional": false, + "description": "Photo height", "type": [ "int" ], - "optional": false, - "name": "height", - "description": "Photo height" + "name": "height" }, { + "optional": true, + "description": "Optional. File size in bytes", "type": [ "int" ], - "optional": true, - "name": "file_size", - "description": "Optional. File size in bytes" + "name": "file_size" } ], - "name": "PhotoSize", - "description": "This object represents one size of a photo or a file / sticker thumbnail." + "description": "This object represents one size of a photo or a file / sticker thumbnail.", + "name": "PhotoSize" }, { "params": [ { + "optional": false, + "description": "Identifier for this file, which can be used to download or reuse the file", "type": [ "str" ], - "optional": false, - "name": "file_id", - "description": "Identifier for this file, which can be used to download or reuse the file" + "name": "file_id" }, { + "optional": false, + "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", "type": [ "str" ], - "optional": false, - "name": "file_unique_id", - "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." + "name": "file_unique_id" }, { + "optional": false, + "description": "Video width as defined by the sender", "type": [ "int" ], - "optional": false, - "name": "width", - "description": "Video width as defined by sender" + "name": "width" }, { + "optional": false, + "description": "Video height as defined by the sender", "type": [ "int" ], - "optional": false, - "name": "height", - "description": "Video height as defined by sender" + "name": "height" }, { + "optional": false, + "description": "Duration of the video in seconds as defined by the sender", "type": [ "int" ], - "optional": false, - "name": "duration", - "description": "Duration of the video in seconds as defined by sender" + "name": "duration" }, { + "optional": true, + "description": "Optional. Animation thumbnail as defined by the sender", "type": [ "PhotoSize" ], - "optional": true, - "name": "thumbnail", - "description": "Optional. Animation thumbnail as defined by sender" + "name": "thumbnail" }, { + "optional": true, + "description": "Optional. Original animation filename as defined by the sender", "type": [ "str" ], - "optional": true, - "name": "file_name", - "description": "Optional. Original animation filename as defined by sender" + "name": "file_name" }, { + "optional": true, + "description": "Optional. MIME type of the file as defined by the sender", "type": [ "str" ], - "optional": true, - "name": "mime_type", - "description": "Optional. MIME type of the file as defined by sender" + "name": "mime_type" }, { + "optional": true, + "description": "Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.", "type": [ "int" ], - "optional": true, - "name": "file_size", - "description": "Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value." + "name": "file_size" } ], - "name": "Animation", - "description": "This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound)." + "description": "This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).", + "name": "Animation" }, { "params": [ { + "optional": false, + "description": "Identifier for this file, which can be used to download or reuse the file", "type": [ "str" ], - "optional": false, - "name": "file_id", - "description": "Identifier for this file, which can be used to download or reuse the file" + "name": "file_id" }, { + "optional": false, + "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", "type": [ "str" ], - "optional": false, - "name": "file_unique_id", - "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." + "name": "file_unique_id" }, { + "optional": false, + "description": "Duration of the audio in seconds as defined by the sender", "type": [ "int" ], - "optional": false, - "name": "duration", - "description": "Duration of the audio in seconds as defined by sender" + "name": "duration" }, { + "optional": true, + "description": "Optional. Performer of the audio as defined by the sender or by audio tags", "type": [ "str" ], - "optional": true, - "name": "performer", - "description": "Optional. Performer of the audio as defined by sender or by audio tags" + "name": "performer" }, { + "optional": true, + "description": "Optional. Title of the audio as defined by the sender or by audio tags", "type": [ "str" ], - "optional": true, - "name": "title", - "description": "Optional. Title of the audio as defined by sender or by audio tags" + "name": "title" }, { + "optional": true, + "description": "Optional. Original filename as defined by the sender", "type": [ "str" ], - "optional": true, - "name": "file_name", - "description": "Optional. Original filename as defined by sender" + "name": "file_name" }, { + "optional": true, + "description": "Optional. MIME type of the file as defined by the sender", "type": [ "str" ], - "optional": true, - "name": "mime_type", - "description": "Optional. MIME type of the file as defined by sender" + "name": "mime_type" }, { + "optional": true, + "description": "Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.", "type": [ "int" ], - "optional": true, - "name": "file_size", - "description": "Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value." + "name": "file_size" }, { + "optional": true, + "description": "Optional. Thumbnail of the album cover to which the music file belongs", "type": [ "PhotoSize" ], - "optional": true, - "name": "thumbnail", - "description": "Optional. Thumbnail of the album cover to which the music file belongs" + "name": "thumbnail" } ], - "name": "Audio", - "description": "This object represents an audio file to be treated as music by the Telegram clients." + "description": "This object represents an audio file to be treated as music by the Telegram clients.", + "name": "Audio" }, { "params": [ { + "optional": false, + "description": "Identifier for this file, which can be used to download or reuse the file", "type": [ "str" ], - "optional": false, - "name": "file_id", - "description": "Identifier for this file, which can be used to download or reuse the file" + "name": "file_id" }, { + "optional": false, + "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", "type": [ "str" ], - "optional": false, - "name": "file_unique_id", - "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." + "name": "file_unique_id" }, { + "optional": true, + "description": "Optional. Document thumbnail as defined by the sender", "type": [ "PhotoSize" ], - "optional": true, - "name": "thumbnail", - "description": "Optional. Document thumbnail as defined by sender" + "name": "thumbnail" }, { + "optional": true, + "description": "Optional. Original filename as defined by the sender", "type": [ "str" ], - "optional": true, - "name": "file_name", - "description": "Optional. Original filename as defined by sender" + "name": "file_name" }, { + "optional": true, + "description": "Optional. MIME type of the file as defined by the sender", "type": [ "str" ], - "optional": true, - "name": "mime_type", - "description": "Optional. MIME type of the file as defined by sender" + "name": "mime_type" }, { + "optional": true, + "description": "Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.", "type": [ "int" ], - "optional": true, - "name": "file_size", - "description": "Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value." + "name": "file_size" } ], - "name": "Document", - "description": "This object represents a general file (as opposed to photos, voice messages and audio files)." + "description": "This object represents a general file (as opposed to photos, voice messages and audio files).", + "name": "Document" }, { "params": [ { + "optional": false, + "description": "Chat that posted the story", "type": [ "Chat" ], - "optional": false, - "name": "chat", - "description": "Chat that posted the story" + "name": "chat" }, { + "optional": false, + "description": "Unique identifier for the story in the chat", "type": [ "int" ], - "optional": false, - "name": "id", - "description": "Unique identifier for the story in the chat" + "name": "id" } ], - "name": "Story", - "description": "This object represents a story." + "description": "This object represents a story.", + "name": "Story" }, { "params": [ { + "optional": false, + "description": "Identifier for this file, which can be used to download or reuse the file", "type": [ "str" ], - "optional": false, - "name": "file_id", - "description": "Identifier for this file, which can be used to download or reuse the file" + "name": "file_id" }, { + "optional": false, + "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", "type": [ "str" ], - "optional": false, - "name": "file_unique_id", - "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." + "name": "file_unique_id" }, { + "optional": false, + "description": "Video width as defined by the sender", "type": [ "int" ], - "optional": false, - "name": "width", - "description": "Video width as defined by sender" + "name": "width" }, { + "optional": false, + "description": "Video height as defined by the sender", "type": [ "int" ], - "optional": false, - "name": "height", - "description": "Video height as defined by sender" + "name": "height" }, { + "optional": false, + "description": "Duration of the video in seconds as defined by the sender", "type": [ "int" ], - "optional": false, - "name": "duration", - "description": "Duration of the video in seconds as defined by sender" + "name": "duration" }, { + "optional": true, + "description": "Optional. Video thumbnail", "type": [ "PhotoSize" ], - "optional": true, - "name": "thumbnail", - "description": "Optional. Video thumbnail" + "name": "thumbnail" }, { + "optional": true, + "description": "Optional. Original filename as defined by the sender", "type": [ "str" ], - "optional": true, - "name": "file_name", - "description": "Optional. Original filename as defined by sender" + "name": "file_name" }, { + "optional": true, + "description": "Optional. MIME type of the file as defined by the sender", "type": [ "str" ], - "optional": true, - "name": "mime_type", - "description": "Optional. MIME type of the file as defined by sender" + "name": "mime_type" }, { + "optional": true, + "description": "Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.", "type": [ "int" ], - "optional": true, - "name": "file_size", - "description": "Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value." + "name": "file_size" } ], - "name": "Video", - "description": "This object represents a video file." + "description": "This object represents a video file.", + "name": "Video" }, { "params": [ { + "optional": false, + "description": "Identifier for this file, which can be used to download or reuse the file", "type": [ "str" ], - "optional": false, - "name": "file_id", - "description": "Identifier for this file, which can be used to download or reuse the file" + "name": "file_id" }, { + "optional": false, + "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", "type": [ "str" ], - "optional": false, - "name": "file_unique_id", - "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." + "name": "file_unique_id" }, { + "optional": false, + "description": "Video width and height (diameter of the video message) as defined by the sender", "type": [ "int" ], - "optional": false, - "name": "length", - "description": "Video width and height (diameter of the video message) as defined by sender" + "name": "length" }, { + "optional": false, + "description": "Duration of the video in seconds as defined by the sender", "type": [ "int" ], - "optional": false, - "name": "duration", - "description": "Duration of the video in seconds as defined by sender" + "name": "duration" }, { + "optional": true, + "description": "Optional. Video thumbnail", "type": [ "PhotoSize" ], - "optional": true, - "name": "thumbnail", - "description": "Optional. Video thumbnail" + "name": "thumbnail" }, { + "optional": true, + "description": "Optional. File size in bytes", "type": [ "int" ], - "optional": true, - "name": "file_size", - "description": "Optional. File size in bytes" + "name": "file_size" } ], - "name": "VideoNote", - "description": "This object represents a video message (available in Telegram apps as of v.4.0)." + "description": "This object represents a video message (available in Telegram apps as of v.4.0).", + "name": "VideoNote" }, { "params": [ { + "optional": false, + "description": "Identifier for this file, which can be used to download or reuse the file", "type": [ "str" ], - "optional": false, - "name": "file_id", - "description": "Identifier for this file, which can be used to download or reuse the file" + "name": "file_id" }, { + "optional": false, + "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", "type": [ "str" ], - "optional": false, - "name": "file_unique_id", - "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." + "name": "file_unique_id" }, { + "optional": false, + "description": "Duration of the audio in seconds as defined by the sender", "type": [ "int" ], - "optional": false, - "name": "duration", - "description": "Duration of the audio in seconds as defined by sender" + "name": "duration" }, { + "optional": true, + "description": "Optional. MIME type of the file as defined by the sender", "type": [ "str" ], - "optional": true, - "name": "mime_type", - "description": "Optional. MIME type of the file as defined by sender" + "name": "mime_type" }, { + "optional": true, + "description": "Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.", "type": [ "int" ], - "optional": true, - "name": "file_size", - "description": "Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value." + "name": "file_size" } ], - "name": "Voice", - "description": "This object represents a voice note." + "description": "This object represents a voice note.", + "name": "Voice" }, { "params": [ { + "optional": false, + "description": "The number of Telegram Stars that must be paid to buy access to the media", "type": [ - "str" + "int" ], - "optional": false, - "name": "phone_number", - "description": "Contact's phone number" + "name": "star_count" }, { + "optional": false, + "description": "Information about the paid media", "type": [ - "str" + [ + "array", + [ + "PaidMedia" + ] + ] ], - "optional": false, - "name": "first_name", - "description": "Contact's first name" - }, + "name": "paid_media" + } + ], + "description": "Describes the paid media added to a message.", + "name": "PaidMediaInfo" + }, + { + "params": [ { + "optional": false, + "description": "Type of the paid media, always “preview”", "type": [ "str" ], - "optional": true, - "name": "last_name", - "description": "Optional. Contact's last name" + "name": "type" }, { + "optional": true, + "description": "Optional. Media width as defined by the sender", "type": [ "int" ], - "optional": true, - "name": "user_id", - "description": "Optional. Contact's user identifier in Telegram. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier." + "name": "width" }, { + "optional": true, + "description": "Optional. Media height as defined by the sender", "type": [ - "str" + "int" ], + "name": "height" + }, + { "optional": true, - "name": "vcard", - "description": "Optional. Additional data about the contact in the form of a vCard" + "description": "Optional. Duration of the media in seconds as defined by the sender", + "type": [ + "int" + ], + "name": "duration" } ], - "name": "Contact", - "description": "This object represents a phone contact." + "description": "The paid media isn't available before the payment.", + "name": "PaidMediaPreview" }, { "params": [ { + "optional": false, + "description": "Type of the paid media, always “photo”", "type": [ "str" ], - "optional": false, - "name": "emoji", - "description": "Emoji on which the dice throw animation is based" + "name": "type" }, { + "optional": false, + "description": "The photo", "type": [ - "int" + [ + "array", + [ + "PhotoSize" + ] + ] ], - "optional": false, - "name": "value", - "description": "Value of the dice, 1-6 for “”, “” and “” base emoji, 1-5 for “” and “” base emoji, 1-64 for “” base emoji" + "name": "photo" } ], - "name": "Dice", - "description": "This object represents an animated emoji that displays a random value." + "description": "The paid media is a photo.", + "name": "PaidMediaPhoto" }, { "params": [ { + "optional": false, + "description": "Type of the paid media, always “video”", "type": [ "str" ], - "optional": false, - "name": "text", - "description": "Option text, 1-100 characters" + "name": "type" }, { + "optional": false, + "description": "The video", "type": [ - "int" + "Video" ], - "optional": false, - "name": "voter_count", - "description": "Number of users that voted for this option" + "name": "video" } ], - "name": "PollOption", - "description": "This object contains information about one answer option in a poll." + "description": "The paid media is a video.", + "name": "PaidMediaVideo" }, { "params": [ { + "optional": false, + "description": "Contact's phone number", "type": [ "str" ], - "optional": false, - "name": "poll_id", - "description": "Unique poll identifier" + "name": "phone_number" }, { + "optional": false, + "description": "Contact's first name", "type": [ - "Chat" + "str" ], - "optional": true, - "name": "voter_chat", - "description": "Optional. The chat that changed the answer to the poll, if the voter is anonymous" + "name": "first_name" }, { + "optional": true, + "description": "Optional. Contact's last name", "type": [ - "User" + "str" ], + "name": "last_name" + }, + { "optional": true, - "name": "user", - "description": "Optional. The user that changed the answer to the poll, if the voter isn't anonymous" + "description": "Optional. Contact's user identifier in Telegram. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.", + "type": [ + "int" + ], + "name": "user_id" }, { + "optional": true, + "description": "Optional. Additional data about the contact in the form of a vCard", "type": [ - [ - "array", - [ - "int" - ] - ] + "str" ], - "optional": false, - "name": "option_ids", - "description": "0-based identifiers of chosen answer options. May be empty if the vote was retracted." + "name": "vcard" } ], - "name": "PollAnswer", - "description": "This object represents an answer of a user in a non-anonymous poll." + "description": "This object represents a phone contact.", + "name": "Contact" }, { "params": [ { + "optional": false, + "description": "Emoji on which the dice throw animation is based", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique poll identifier" + "name": "emoji" }, { + "optional": false, + "description": "Value of the dice, 1-6 for “”, “” and “” base emoji, 1-5 for “” and “” base emoji, 1-64 for “” base emoji", "type": [ - "str" + "int" ], + "name": "value" + } + ], + "description": "This object represents an animated emoji that displays a random value.", + "name": "Dice" + }, + { + "params": [ + { "optional": false, - "name": "question", - "description": "Poll question, 1-300 characters" + "description": "Option text, 1-100 characters", + "type": [ + "str" + ], + "name": "text" }, { + "optional": true, + "description": "Optional. Special entities that appear in the option text. Currently, only custom emoji entities are allowed in poll option texts", "type": [ [ "array", [ - "PollOption" + "MessageEntity" ] ] ], - "optional": false, - "name": "options", - "description": "List of poll options" + "name": "text_entities" }, { + "optional": false, + "description": "Number of users that voted for this option", "type": [ "int" ], - "optional": false, - "name": "total_voter_count", - "description": "Total number of users that voted in the poll" - }, + "name": "voter_count" + } + ], + "description": "This object contains information about one answer option in a poll.", + "name": "PollOption" + }, + { + "params": [ { - "type": [ - "bool" - ], "optional": false, - "name": "is_closed", - "description": "True, if the poll is closed" - }, - { + "description": "Option text, 1-100 characters", "type": [ - "bool" + "str" ], - "optional": false, - "name": "is_anonymous", - "description": "True, if the poll is anonymous" + "name": "text" }, { + "optional": true, + "description": "Optional. Mode for parsing entities in the text. See formatting options for more details. Currently, only custom emoji entities are allowed", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Poll type, currently can be “regular” or “quiz”" + "name": "text_parse_mode" }, { + "optional": true, + "description": "Optional. A JSON-serialized list of special entities that appear in the poll option text. It can be specified instead of text_parse_mode", "type": [ - "bool" + [ + "array", + [ + "MessageEntity" + ] + ] ], + "name": "text_entities" + } + ], + "description": "This object contains information about one answer option in a poll to be sent.", + "name": "InputPollOption" + }, + { + "params": [ + { "optional": false, - "name": "allows_multiple_answers", - "description": "True, if the poll allows multiple answers" + "description": "Unique poll identifier", + "type": [ + "str" + ], + "name": "poll_id" }, { + "optional": true, + "description": "Optional. The chat that changed the answer to the poll, if the voter is anonymous", "type": [ - "int" + "Chat" ], - "optional": true, - "name": "correct_option_id", - "description": "Optional. 0-based identifier of the correct answer option. Available only for polls in the quiz mode, which are closed, or was sent (not forwarded) by the bot or to the private chat with the bot." + "name": "voter_chat" }, { + "optional": true, + "description": "Optional. The user that changed the answer to the poll, if the voter isn't anonymous", "type": [ - "str" + "User" ], - "optional": true, - "name": "explanation", - "description": "Optional. Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters" + "name": "user" }, { + "optional": false, + "description": "0-based identifiers of chosen answer options. May be empty if the vote was retracted.", "type": [ [ "array", [ - "MessageEntity" + "int" ] ] ], + "name": "option_ids" + } + ], + "description": "This object represents an answer of a user in a non-anonymous poll.", + "name": "PollAnswer" + }, + { + "params": [ + { + "optional": false, + "description": "Unique poll identifier", + "type": [ + "str" + ], + "name": "id" + }, + { + "optional": false, + "description": "Poll question, 1-300 characters", + "type": [ + "str" + ], + "name": "question" + }, + { "optional": true, - "name": "explanation_entities", - "description": "Optional. Special entities like usernames, URLs, bot commands, etc. that appear in the explanation" + "description": "Optional. Special entities that appear in the question. Currently, only custom emoji entities are allowed in poll questions", + "type": [ + [ + "array", + [ + "MessageEntity" + ] + ] + ], + "name": "question_entities" + }, + { + "optional": false, + "description": "List of poll options", + "type": [ + [ + "array", + [ + "PollOption" + ] + ] + ], + "name": "options" + }, + { + "optional": false, + "description": "Total number of users that voted in the poll", + "type": [ + "int" + ], + "name": "total_voter_count" + }, + { + "optional": false, + "description": "True, if the poll is closed", + "type": [ + "bool" + ], + "name": "is_closed" + }, + { + "optional": false, + "description": "True, if the poll is anonymous", + "type": [ + "bool" + ], + "name": "is_anonymous" + }, + { + "optional": false, + "description": "Poll type, currently can be “regular” or “quiz”", + "type": [ + "str" + ], + "name": "type" + }, + { + "optional": false, + "description": "True, if the poll allows multiple answers", + "type": [ + "bool" + ], + "name": "allows_multiple_answers" }, { + "optional": true, + "description": "Optional. 0-based identifier of the correct answer option. Available only for polls in the quiz mode, which are closed, or was sent (not forwarded) by the bot or to the private chat with the bot.", "type": [ "int" ], + "name": "correct_option_id" + }, + { + "optional": true, + "description": "Optional. Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters", + "type": [ + "str" + ], + "name": "explanation" + }, + { "optional": true, - "name": "open_period", - "description": "Optional. Amount of time in seconds the poll will be active after creation" + "description": "Optional. Special entities like usernames, URLs, bot commands, etc. that appear in the explanation", + "type": [ + [ + "array", + [ + "MessageEntity" + ] + ] + ], + "name": "explanation_entities" }, { + "optional": true, + "description": "Optional. Amount of time in seconds the poll will be active after creation", "type": [ "int" ], + "name": "open_period" + }, + { "optional": true, - "name": "close_date", - "description": "Optional. Point in time (Unix timestamp) when the poll will be automatically closed" + "description": "Optional. Point in time (Unix timestamp) when the poll will be automatically closed", + "type": [ + "int" + ], + "name": "close_date" } ], - "name": "Poll", - "description": "This object contains information about a poll." + "description": "This object contains information about a poll.", + "name": "Poll" }, { "params": [ { + "optional": false, + "description": "Latitude as defined by the sender", "type": [ "float" ], - "optional": false, - "name": "latitude", - "description": "Latitude as defined by sender" + "name": "latitude" }, { + "optional": false, + "description": "Longitude as defined by the sender", "type": [ "float" ], - "optional": false, - "name": "longitude", - "description": "Longitude as defined by sender" + "name": "longitude" }, { + "optional": true, + "description": "Optional. The radius of uncertainty for the location, measured in meters; 0-1500", "type": [ "float" ], - "optional": true, - "name": "horizontal_accuracy", - "description": "Optional. The radius of uncertainty for the location, measured in meters; 0-1500" + "name": "horizontal_accuracy" }, { + "optional": true, + "description": "Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.", "type": [ "int" ], - "optional": true, - "name": "live_period", - "description": "Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only." + "name": "live_period" }, { + "optional": true, + "description": "Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.", "type": [ "int" ], - "optional": true, - "name": "heading", - "description": "Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only." + "name": "heading" }, { + "optional": true, + "description": "Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.", "type": [ "int" ], - "optional": true, - "name": "proximity_alert_radius", - "description": "Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only." + "name": "proximity_alert_radius" } ], - "name": "Location", - "description": "This object represents a point on the map." + "description": "This object represents a point on the map.", + "name": "Location" }, { "params": [ { + "optional": false, + "description": "Venue location. Can't be a live location", "type": [ "Location" ], - "optional": false, - "name": "location", - "description": "Venue location. Can't be a live location" + "name": "location" }, { + "optional": false, + "description": "Name of the venue", "type": [ "str" ], - "optional": false, - "name": "title", - "description": "Name of the venue" + "name": "title" }, { + "optional": false, + "description": "Address of the venue", "type": [ "str" ], - "optional": false, - "name": "address", - "description": "Address of the venue" + "name": "address" }, { + "optional": true, + "description": "Optional. Foursquare identifier of the venue", "type": [ "str" ], - "optional": true, - "name": "foursquare_id", - "description": "Optional. Foursquare identifier of the venue" + "name": "foursquare_id" }, { + "optional": true, + "description": "Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)", "type": [ "str" ], - "optional": true, - "name": "foursquare_type", - "description": "Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)" + "name": "foursquare_type" }, { + "optional": true, + "description": "Optional. Google Places identifier of the venue", "type": [ "str" ], - "optional": true, - "name": "google_place_id", - "description": "Optional. Google Places identifier of the venue" + "name": "google_place_id" }, { + "optional": true, + "description": "Optional. Google Places type of the venue. (See supported types.)", "type": [ "str" ], - "optional": true, - "name": "google_place_type", - "description": "Optional. Google Places type of the venue. (See supported types.)" + "name": "google_place_type" } ], - "name": "Venue", - "description": "This object represents a venue." + "description": "This object represents a venue.", + "name": "Venue" }, { "params": [ { + "optional": false, + "description": "The data. Be aware that a bad client can send arbitrary data in this field.", "type": [ "str" ], - "optional": false, - "name": "data", - "description": "The data. Be aware that a bad client can send arbitrary data in this field." + "name": "data" }, { + "optional": false, + "description": "Text of the web_app keyboard button from which the Web App was opened. Be aware that a bad client can send arbitrary data in this field.", "type": [ "str" ], - "optional": false, - "name": "button_text", - "description": "Text of the web_app keyboard button from which the Web App was opened. Be aware that a bad client can send arbitrary data in this field." + "name": "button_text" } ], - "name": "WebAppData", - "description": "Describes data sent from a Web App to the bot." + "description": "Describes data sent from a Web App to the bot.", + "name": "WebAppData" }, { "params": [ { + "optional": false, + "description": "User that triggered the alert", "type": [ "User" ], - "optional": false, - "name": "traveler", - "description": "User that triggered the alert" + "name": "traveler" }, { + "optional": false, + "description": "User that set the alert", "type": [ "User" ], - "optional": false, - "name": "watcher", - "description": "User that set the alert" + "name": "watcher" }, { + "optional": false, + "description": "The distance between the users", "type": [ "int" ], - "optional": false, - "name": "distance", - "description": "The distance between the users" + "name": "distance" } ], - "name": "ProximityAlertTriggered", - "description": "This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user." + "description": "This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user.", + "name": "ProximityAlertTriggered" }, { "params": [ { + "optional": false, + "description": "New auto-delete time for messages in the chat; in seconds", "type": [ "int" ], - "optional": false, - "name": "message_auto_delete_time", - "description": "New auto-delete time for messages in the chat; in seconds" + "name": "message_auto_delete_time" } ], - "name": "MessageAutoDeleteTimerChanged", - "description": "This object represents a service message about a change in auto-delete timer settings." + "description": "This object represents a service message about a change in auto-delete timer settings.", + "name": "MessageAutoDeleteTimerChanged" }, { "params": [ { + "optional": false, + "description": "Number of boosts added by the user", "type": [ "int" ], - "optional": false, - "name": "boost_count", - "description": "Number of boosts added by the user" + "name": "boost_count" } ], - "name": "ChatBoostAdded", - "description": "This object represents a service message about a user boosting a chat." + "description": "This object represents a service message about a user boosting a chat.", + "name": "ChatBoostAdded" }, { "params": [ { + "optional": false, + "description": "Type of the background fill, always “solid”", "type": [ "str" ], - "optional": false, - "name": "name", - "description": "Name of the topic" + "name": "type" }, { - "type": [ - "int" - ], "optional": false, - "name": "icon_color", - "description": "Color of the topic icon in RGB format" - }, - { + "description": "The color of the background fill in the RGB24 format", "type": [ - "str" + "int" ], - "optional": true, - "name": "icon_custom_emoji_id", - "description": "Optional. Unique identifier of the custom emoji shown as the topic icon" + "name": "color" } ], - "name": "ForumTopicCreated", - "description": "This object represents a service message about a new forum topic created in the chat." - }, - { - "params": [], - "name": "ForumTopicClosed", - "description": "This object represents a service message about a forum topic closed in the chat. Currently holds no information." + "description": "The background is filled using the selected color.", + "name": "BackgroundFillSolid" }, { "params": [ { + "optional": false, + "description": "Type of the background fill, always “gradient”", "type": [ "str" ], - "optional": true, - "name": "name", - "description": "Optional. New name of the topic, if it was edited" + "name": "type" }, { - "type": [ - "str" - ], - "optional": true, - "name": "icon_custom_emoji_id", - "description": "Optional. New identifier of the custom emoji shown as the topic icon, if it was edited; an empty string if the icon was removed" - } - ], - "name": "ForumTopicEdited", - "description": "This object represents a service message about an edited forum topic." - }, - { - "params": [], - "name": "ForumTopicReopened", - "description": "This object represents a service message about a forum topic reopened in the chat. Currently holds no information." - }, - { - "params": [], - "name": "GeneralForumTopicHidden", - "description": "This object represents a service message about General forum topic hidden in the chat. Currently holds no information." - }, - { - "params": [], - "name": "GeneralForumTopicUnhidden", - "description": "This object represents a service message about General forum topic unhidden in the chat. Currently holds no information." - }, - { - "params": [ - { + "optional": false, + "description": "Top color of the gradient in the RGB24 format", "type": [ "int" ], - "optional": false, - "name": "user_id", - "description": "Identifier of the shared user. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so 64-bit integers or double-precision float types are safe for storing these identifiers. The bot may not have access to the user and could be unable to use this identifier, unless the user is already known to the bot by some other means." + "name": "top_color" }, { + "optional": false, + "description": "Bottom color of the gradient in the RGB24 format", "type": [ - "str" + "int" ], - "optional": true, - "name": "first_name", - "description": "Optional. First name of the user, if the name was requested by the bot" + "name": "bottom_color" }, { + "optional": false, + "description": "Clockwise rotation angle of the background fill in degrees; 0-359", "type": [ - "str" + "int" ], - "optional": true, - "name": "last_name", - "description": "Optional. Last name of the user, if the name was requested by the bot" - }, + "name": "rotation_angle" + } + ], + "description": "The background is a gradient fill.", + "name": "BackgroundFillGradient" + }, + { + "params": [ { + "optional": false, + "description": "Type of the background fill, always “freeform_gradient”", "type": [ "str" ], - "optional": true, - "name": "username", - "description": "Optional. Username of the user, if the username was requested by the bot" + "name": "type" }, { + "optional": false, + "description": "A list of the 3 or 4 base colors that are used to generate the freeform gradient in the RGB24 format", "type": [ [ "array", [ - "PhotoSize" + "int" ] ] ], - "optional": true, - "name": "photo", - "description": "Optional. Available sizes of the chat photo, if the photo was requested by the bot" + "name": "colors" } ], - "name": "SharedUser", - "description": "This object contains information about a user that was shared with the bot using a KeyboardButtonRequestUser button." + "description": "The background is a freeform gradient that rotates after every message in the chat.", + "name": "BackgroundFillFreeformGradient" }, { "params": [ { + "optional": false, + "description": "Type of the background, always “fill”", "type": [ - "int" + "str" ], - "optional": false, - "name": "request_id", - "description": "Identifier of the request" + "name": "type" }, { + "optional": false, + "description": "The background fill", "type": [ - [ - "array", - [ - "SharedUser" - ] - ] + "BackgroundFill" ], + "name": "fill" + }, + { "optional": false, - "name": "users", - "description": "Information about users shared with the bot." + "description": "Dimming of the background in dark themes, as a percentage; 0-100", + "type": [ + "int" + ], + "name": "dark_theme_dimming" } ], - "name": "UsersShared", - "description": "This object contains information about the users whose identifiers were shared with the bot using a KeyboardButtonRequestUsers button." + "description": "The background is automatically filled based on the selected colors.", + "name": "BackgroundTypeFill" }, { "params": [ { + "optional": false, + "description": "Type of the background, always “wallpaper”", "type": [ - "int" + "str" ], - "optional": false, - "name": "request_id", - "description": "Identifier of the request" + "name": "type" }, { + "optional": false, + "description": "Document with the wallpaper", "type": [ - "int" + "Document" ], - "optional": false, - "name": "chat_id", - "description": "Identifier of the shared chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. The bot may not have access to the chat and could be unable to use this identifier, unless the chat is already known to the bot by some other means." + "name": "document" }, { + "optional": false, + "description": "Dimming of the background in dark themes, as a percentage; 0-100", "type": [ - "str" + "int" ], - "optional": true, - "name": "title", - "description": "Optional. Title of the chat, if the title was requested by the bot." + "name": "dark_theme_dimming" }, { + "optional": true, + "description": "Optional. True, if the wallpaper is downscaled to fit in a 450x450 square and then box-blurred with radius 12", "type": [ - "str" + "bool" ], - "optional": true, - "name": "username", - "description": "Optional. Username of the chat, if the username was requested by the bot and available." + "name": "is_blurred" }, { + "optional": true, + "description": "Optional. True, if the background moves slightly when the device is tilted", "type": [ - [ - "array", - [ - "PhotoSize" - ] - ] + "bool" ], - "optional": true, - "name": "photo", - "description": "Optional. Available sizes of the chat photo, if the photo was requested by the bot" + "name": "is_moving" } ], - "name": "ChatShared", - "description": "This object contains information about a chat that was shared with the bot using a KeyboardButtonRequestChat button." + "description": "The background is a wallpaper in the JPEG format.", + "name": "BackgroundTypeWallpaper" }, { "params": [ { + "optional": false, + "description": "Type of the background, always “pattern”", "type": [ - "bool" + "str" ], - "optional": true, - "name": "from_request", - "description": "Optional. True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess" + "name": "type" }, { + "optional": false, + "description": "Document with the pattern", "type": [ - "str" + "Document" ], - "optional": true, - "name": "web_app_name", - "description": "Optional. Name of the Web App, if the access was granted when the Web App was launched from a link" + "name": "document" + }, + { + "optional": false, + "description": "The background fill that is combined with the pattern", + "type": [ + "BackgroundFill" + ], + "name": "fill" + }, + { + "optional": false, + "description": "Intensity of the pattern when it is shown above the filled background; 0-100", + "type": [ + "int" + ], + "name": "intensity" }, { + "optional": true, + "description": "Optional. True, if the background fill must be applied only to the pattern itself. All other pixels are black in this case. For dark themes only", "type": [ "bool" ], + "name": "is_inverted" + }, + { "optional": true, - "name": "from_attachment_menu", - "description": "Optional. True, if the access was granted when the bot was added to the attachment or side menu" + "description": "Optional. True, if the background moves slightly when the device is tilted", + "type": [ + "bool" + ], + "name": "is_moving" } ], - "name": "WriteAccessAllowed", - "description": "This object represents a service message about a user allowing a bot to write messages after adding it to the attachment menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess." + "description": "The background is a PNG or TGV (gzipped subset of SVG with MIME type “application/x-tgwallpattern”) pattern to be combined with the background fill chosen by the user.", + "name": "BackgroundTypePattern" }, { "params": [ { + "optional": false, + "description": "Type of the background, always “chat_theme”", "type": [ - "int" + "str" ], + "name": "type" + }, + { "optional": false, - "name": "start_date", - "description": "Point in time (Unix timestamp) when the video chat is supposed to be started by a chat administrator" + "description": "Name of the chat theme, which is usually an emoji", + "type": [ + "str" + ], + "name": "theme_name" } ], - "name": "VideoChatScheduled", - "description": "This object represents a service message about a video chat scheduled in the chat." - }, - { - "params": [], - "name": "VideoChatStarted", - "description": "This object represents a service message about a video chat started in the chat. Currently holds no information." + "description": "The background is taken directly from a built-in chat theme.", + "name": "BackgroundTypeChatTheme" }, { "params": [ { + "optional": false, + "description": "Type of the background", "type": [ - "int" + "BackgroundType" ], - "optional": false, - "name": "duration", - "description": "Video chat duration in seconds" + "name": "type" } ], - "name": "VideoChatEnded", - "description": "This object represents a service message about a video chat ended in the chat." + "description": "This object represents a chat background.", + "name": "ChatBackground" }, { "params": [ { + "optional": false, + "description": "Name of the topic", "type": [ - [ - "array", - [ - "User" - ] - ] + "str" ], + "name": "name" + }, + { "optional": false, - "name": "users", - "description": "New members that were invited to the video chat" + "description": "Color of the topic icon in RGB format", + "type": [ + "int" + ], + "name": "icon_color" + }, + { + "optional": true, + "description": "Optional. Unique identifier of the custom emoji shown as the topic icon", + "type": [ + "str" + ], + "name": "icon_custom_emoji_id" } ], - "name": "VideoChatParticipantsInvited", - "description": "This object represents a service message about new members invited to a video chat." + "description": "This object represents a service message about a new forum topic created in the chat.", + "name": "ForumTopicCreated" }, { "params": [], - "name": "GiveawayCreated", - "description": "This object represents a service message about the creation of a scheduled giveaway. Currently holds no information." + "description": "This object represents a service message about a forum topic closed in the chat. Currently holds no information.", + "name": "ForumTopicClosed" }, { "params": [ { + "optional": true, + "description": "Optional. New name of the topic, if it was edited", "type": [ - [ - "array", - [ - "Chat" - ] - ] + "str" ], - "optional": false, - "name": "chats", - "description": "The list of chats which the user must join to participate in the giveaway" + "name": "name" }, { + "optional": true, + "description": "Optional. New identifier of the custom emoji shown as the topic icon, if it was edited; an empty string if the icon was removed", "type": [ - "int" + "str" ], - "optional": false, - "name": "winners_selection_date", - "description": "Point in time (Unix timestamp) when winners of the giveaway will be selected" - }, + "name": "icon_custom_emoji_id" + } + ], + "description": "This object represents a service message about an edited forum topic.", + "name": "ForumTopicEdited" + }, + { + "params": [], + "description": "This object represents a service message about a forum topic reopened in the chat. Currently holds no information.", + "name": "ForumTopicReopened" + }, + { + "params": [], + "description": "This object represents a service message about General forum topic hidden in the chat. Currently holds no information.", + "name": "GeneralForumTopicHidden" + }, + { + "params": [], + "description": "This object represents a service message about General forum topic unhidden in the chat. Currently holds no information.", + "name": "GeneralForumTopicUnhidden" + }, + { + "params": [ { + "optional": false, + "description": "Identifier of the shared user. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so 64-bit integers or double-precision float types are safe for storing these identifiers. The bot may not have access to the user and could be unable to use this identifier, unless the user is already known to the bot by some other means.", "type": [ "int" ], - "optional": false, - "name": "winner_count", - "description": "The number of users which are supposed to be selected as winners of the giveaway" + "name": "user_id" }, { + "optional": true, + "description": "Optional. First name of the user, if the name was requested by the bot", "type": [ - "bool" + "str" ], - "optional": true, - "name": "only_new_members", - "description": "Optional. True, if only users who join the chats after the giveaway started should be eligible to win" + "name": "first_name" }, { + "optional": true, + "description": "Optional. Last name of the user, if the name was requested by the bot", "type": [ - "bool" + "str" ], - "optional": true, - "name": "has_public_winners", - "description": "Optional. True, if the list of giveaway winners will be visible to everyone" + "name": "last_name" }, { + "optional": true, + "description": "Optional. Username of the user, if the username was requested by the bot", "type": [ "str" ], - "optional": true, - "name": "prize_description", - "description": "Optional. Description of additional giveaway prize" + "name": "username" }, { + "optional": true, + "description": "Optional. Available sizes of the chat photo, if the photo was requested by the bot", "type": [ [ "array", [ - "str" + "PhotoSize" ] ] ], - "optional": true, - "name": "country_codes", - "description": "Optional. A list of two-letter ISO 3166-1 alpha-2 country codes indicating the countries from which eligible users for the giveaway must come. If empty, then all users can participate in the giveaway. Users with a phone number that was bought on Fragment can always participate in giveaways." - }, - { - "type": [ - "int" - ], - "optional": true, - "name": "premium_subscription_month_count", - "description": "Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for" + "name": "photo" } ], - "name": "Giveaway", - "description": "This object represents a message about a scheduled giveaway." + "description": "This object contains information about a user that was shared with the bot using a KeyboardButtonRequestUsers button.", + "name": "SharedUser" }, { "params": [ { - "type": [ - "Chat" - ], - "optional": false, - "name": "chat", - "description": "The chat that created the giveaway" - }, - { - "type": [ - "int" - ], "optional": false, - "name": "giveaway_message_id", - "description": "Identifier of the message with the giveaway in the chat" - }, - { + "description": "Identifier of the request", "type": [ "int" ], - "optional": false, - "name": "winners_selection_date", - "description": "Point in time (Unix timestamp) when winners of the giveaway were selected" + "name": "request_id" }, { - "type": [ - "int" - ], "optional": false, - "name": "winner_count", - "description": "Total number of winners in the giveaway" - }, - { + "description": "Information about users shared with the bot.", "type": [ [ "array", [ - "User" + "SharedUser" ] ] ], - "optional": false, - "name": "winners", - "description": "List of up to 100 winners of the giveaway" - }, + "name": "users" + } + ], + "description": "This object contains information about the users whose identifiers were shared with the bot using a KeyboardButtonRequestUsers button.", + "name": "UsersShared" + }, + { + "params": [ { + "optional": false, + "description": "Identifier of the request", "type": [ "int" ], - "optional": true, - "name": "additional_chat_count", - "description": "Optional. The number of other chats the user had to join in order to be eligible for the giveaway" + "name": "request_id" }, { + "optional": false, + "description": "Identifier of the shared chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. The bot may not have access to the chat and could be unable to use this identifier, unless the chat is already known to the bot by some other means.", "type": [ "int" ], - "optional": true, - "name": "premium_subscription_month_count", - "description": "Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for" + "name": "chat_id" }, { - "type": [ - "int" - ], "optional": true, - "name": "unclaimed_prize_count", - "description": "Optional. Number of undistributed prizes" - }, - { + "description": "Optional. Title of the chat, if the title was requested by the bot.", "type": [ - "bool" + "str" ], - "optional": true, - "name": "only_new_members", - "description": "Optional. True, if only users who had joined the chats after the giveaway started were eligible to win" + "name": "title" }, { - "type": [ - "bool" - ], "optional": true, - "name": "was_refunded", - "description": "Optional. True, if the giveaway was canceled because the payment for it was refunded" - }, - { + "description": "Optional. Username of the chat, if the username was requested by the bot and available.", "type": [ "str" ], - "optional": true, - "name": "prize_description", - "description": "Optional. Description of additional giveaway prize" - } - ], - "name": "GiveawayWinners", - "description": "This object represents a message about the completion of a giveaway with public winners." - }, - { - "params": [ - { - "type": [ - "int" - ], - "optional": false, - "name": "winner_count", - "description": "Number of winners in the giveaway" + "name": "username" }, { - "type": [ - "int" - ], "optional": true, - "name": "unclaimed_prize_count", - "description": "Optional. Number of undistributed prizes" - }, - { + "description": "Optional. Available sizes of the chat photo, if the photo was requested by the bot", "type": [ - "Message" + [ + "array", + [ + "PhotoSize" + ] + ] ], - "optional": true, - "name": "giveaway_message", - "description": "Optional. Message with the giveaway that was completed, if it wasn't deleted" + "name": "photo" } ], - "name": "GiveawayCompleted", - "description": "This object represents a service message about the completion of a giveaway without public winners." + "description": "This object contains information about a chat that was shared with the bot using a KeyboardButtonRequestChat button.", + "name": "ChatShared" }, { "params": [ { + "optional": true, + "description": "Optional. True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess", "type": [ "bool" ], - "optional": true, - "name": "is_disabled", - "description": "Optional. True, if the link preview is disabled" + "name": "from_request" }, { - "type": [ - "str" - ], "optional": true, - "name": "url", - "description": "Optional. URL to use for the link preview. If empty, then the first URL found in the message text will be used" - }, - { + "description": "Optional. Name of the Web App, if the access was granted when the Web App was launched from a link", "type": [ - "bool" + "str" ], - "optional": true, - "name": "prefer_small_media", - "description": "Optional. True, if the media in the link preview is supposed to be shrunk; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview" + "name": "web_app_name" }, { - "type": [ - "bool" - ], "optional": true, - "name": "prefer_large_media", - "description": "Optional. True, if the media in the link preview is supposed to be enlarged; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview" - }, - { + "description": "Optional. True, if the access was granted when the bot was added to the attachment or side menu", "type": [ "bool" ], - "optional": true, - "name": "show_above_text", - "description": "Optional. True, if the link preview must be shown above the message text; otherwise, the link preview will be shown below the message text" + "name": "from_attachment_menu" } ], - "name": "LinkPreviewOptions", - "description": "Describes the options used for link preview generation." + "description": "This object represents a service message about a user allowing a bot to write messages after adding it to the attachment menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess.", + "name": "WriteAccessAllowed" }, { "params": [ { - "type": [ - "int" - ], "optional": false, - "name": "total_count", - "description": "Total number of profile pictures the target user has" - }, - { + "description": "Point in time (Unix timestamp) when the video chat is supposed to be started by a chat administrator", "type": [ - [ - "array", - [ - [ - "array", - [ - "PhotoSize" - ] - ] - ] - ] + "int" ], - "optional": false, - "name": "photos", - "description": "Requested profile pictures (in up to 4 sizes each)" + "name": "start_date" } ], - "name": "UserProfilePhotos", - "description": "This object represent a user's profile pictures." + "description": "This object represents a service message about a video chat scheduled in the chat.", + "name": "VideoChatScheduled" + }, + { + "params": [], + "description": "This object represents a service message about a video chat started in the chat. Currently holds no information.", + "name": "VideoChatStarted" }, { "params": [ { - "type": [ - "str" - ], - "optional": false, - "name": "file_id", - "description": "Identifier for this file, which can be used to download or reuse the file" - }, - { - "type": [ - "str" - ], "optional": false, - "name": "file_unique_id", - "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." - }, - { + "description": "Video chat duration in seconds", "type": [ "int" ], - "optional": true, - "name": "file_size", - "description": "Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value." - }, + "name": "duration" + } + ], + "description": "This object represents a service message about a video chat ended in the chat.", + "name": "VideoChatEnded" + }, + { + "params": [ { + "optional": false, + "description": "New members that were invited to the video chat", "type": [ - "str" + [ + "array", + [ + "User" + ] + ] ], - "optional": true, - "name": "file_path", - "description": "Optional. File path. Use https://api.telegram.org/file/bot/ to get the file." + "name": "users" } ], - "name": "File", - "description": "This object represents a file ready to be downloaded. The file can be downloaded via the link https://api.telegram.org/file/bot/. 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." + "description": "This object represents a service message about new members invited to a video chat.", + "name": "VideoChatParticipantsInvited" }, { "params": [ { + "optional": true, + "description": "Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only", "type": [ - "str" + "int" ], - "optional": false, - "name": "url", - "description": "An HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps" + "name": "prize_star_count" } ], - "name": "WebAppInfo", - "description": "Describes a Web App." + "description": "This object represents a service message about the creation of a scheduled giveaway.", + "name": "GiveawayCreated" }, { "params": [ { + "optional": false, + "description": "The list of chats which the user must join to participate in the giveaway", "type": [ [ "array", [ - [ - "array", - [ - "KeyboardButton" - ] - ] + "Chat" ] ] ], + "name": "chats" + }, + { "optional": false, - "name": "keyboard", - "description": "Array of button rows, each represented by an Array of KeyboardButton objects" + "description": "Point in time (Unix timestamp) when winners of the giveaway will be selected", + "type": [ + "int" + ], + "name": "winners_selection_date" }, { + "optional": false, + "description": "The number of users which are supposed to be selected as winners of the giveaway", "type": [ - "bool" + "int" ], - "optional": true, - "name": "is_persistent", - "description": "Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon." + "name": "winner_count" }, { + "optional": true, + "description": "Optional. True, if only users who join the chats after the giveaway started should be eligible to win", "type": [ "bool" ], - "optional": true, - "name": "resize_keyboard", - "description": "Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard." + "name": "only_new_members" }, { + "optional": true, + "description": "Optional. True, if the list of giveaway winners will be visible to everyone", "type": [ "bool" ], - "optional": true, - "name": "one_time_keyboard", - "description": "Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false." + "name": "has_public_winners" }, { + "optional": true, + "description": "Optional. Description of additional giveaway prize", "type": [ "str" ], + "name": "prize_description" + }, + { "optional": true, - "name": "input_field_placeholder", - "description": "Optional. The placeholder to be shown in the input field when the keyboard is active; 1-64 characters" + "description": "Optional. A list of two-letter ISO 3166-1 alpha-2 country codes indicating the countries from which eligible users for the giveaway must come. If empty, then all users can participate in the giveaway. Users with a phone number that was bought on Fragment can always participate in giveaways.", + "type": [ + [ + "array", + [ + "str" + ] + ] + ], + "name": "country_codes" }, { + "optional": true, + "description": "Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only", "type": [ - "bool" + "int" ], + "name": "prize_star_count" + }, + { "optional": true, - "name": "selective", - "description": "Optional. Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.\n\nExample: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard." + "description": "Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for; for Telegram Premium giveaways only", + "type": [ + "int" + ], + "name": "premium_subscription_month_count" } ], - "name": "ReplyKeyboardMarkup", - "description": "This object represents a custom keyboard with reply options (see Introduction to bots for details and examples)." + "description": "This object represents a message about a scheduled giveaway.", + "name": "Giveaway" }, { "params": [ { - "type": [ - "str" - ], "optional": false, - "name": "text", - "description": "Text of the button. If none of the optional fields are used, it will be sent as a message when the button is pressed" - }, - { + "description": "The chat that created the giveaway", "type": [ - "KeyboardButtonRequestUsers" + "Chat" ], - "optional": true, - "name": "request_users", - "description": "Optional. If specified, pressing the button will open a list of suitable users. Identifiers of selected users will be sent to the bot in a “users_shared” service message. Available in private chats only." + "name": "chat" }, { + "optional": false, + "description": "Identifier of the message with the giveaway in the chat", "type": [ - "KeyboardButtonRequestChat" + "int" ], - "optional": true, - "name": "request_chat", - "description": "Optional. If specified, pressing the button will open a list of suitable chats. Tapping on a chat will send its identifier to the bot in a “chat_shared” service message. Available in private chats only." + "name": "giveaway_message_id" }, { + "optional": false, + "description": "Point in time (Unix timestamp) when winners of the giveaway were selected", "type": [ - "bool" + "int" ], - "optional": true, - "name": "request_contact", - "description": "Optional. If True, the user's phone number will be sent as a contact when the button is pressed. Available in private chats only." + "name": "winners_selection_date" }, { + "optional": false, + "description": "Total number of winners in the giveaway", "type": [ - "bool" + "int" ], - "optional": true, - "name": "request_location", - "description": "Optional. If True, the user's current location will be sent when the button is pressed. Available in private chats only." + "name": "winner_count" }, { + "optional": false, + "description": "List of up to 100 winners of the giveaway", "type": [ - "KeyboardButtonPollType" + [ + "array", + [ + "User" + ] + ] ], - "optional": true, - "name": "request_poll", - "description": "Optional. If specified, the user will be asked to create a poll and send it to the bot when the button is pressed. Available in private chats only." + "name": "winners" }, { - "type": [ - "WebAppInfo" - ], "optional": true, - "name": "web_app", - "description": "Optional. If specified, the described Web App will be launched when the button is pressed. The Web App will be able to send a “web_app_data” service message. Available in private chats only." - } - ], - "name": "KeyboardButton", - "description": "This object represents one button of the reply keyboard. For simple text buttons, String can be used instead of this object to specify the button text. The optional fields web_app, request_users, request_chat, request_contact, request_location, and request_poll are mutually exclusive." - }, - { - "params": [ - { + "description": "Optional. The number of other chats the user had to join in order to be eligible for the giveaway", "type": [ "int" ], - "optional": false, - "name": "request_id", - "description": "Signed 32-bit identifier of the request that will be received back in the UsersShared object. Must be unique within the message" + "name": "additional_chat_count" }, { + "optional": true, + "description": "Optional. The number of Telegram Stars that were split between giveaway winners; for Telegram Star giveaways only", "type": [ - "bool" + "int" ], - "optional": true, - "name": "user_is_bot", - "description": "Optional. Pass True to request bots, pass False to request regular users. If not specified, no additional restrictions are applied." + "name": "prize_star_count" }, { + "optional": true, + "description": "Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for; for Telegram Premium giveaways only", "type": [ - "bool" + "int" ], - "optional": true, - "name": "user_is_premium", - "description": "Optional. Pass True to request premium users, pass False to request non-premium users. If not specified, no additional restrictions are applied." + "name": "premium_subscription_month_count" }, { + "optional": true, + "description": "Optional. Number of undistributed prizes", "type": [ "int" ], - "optional": true, - "name": "max_quantity", - "description": "Optional. The maximum number of users to be selected; 1-10. Defaults to 1." + "name": "unclaimed_prize_count" }, { + "optional": true, + "description": "Optional. True, if only users who had joined the chats after the giveaway started were eligible to win", "type": [ "bool" ], - "optional": true, - "name": "request_name", - "description": "Optional. Pass True to request the users' first and last name" + "name": "only_new_members" }, { + "optional": true, + "description": "Optional. True, if the giveaway was canceled because the payment for it was refunded", "type": [ "bool" ], - "optional": true, - "name": "request_username", - "description": "Optional. Pass True to request the users' username" + "name": "was_refunded" }, { + "optional": true, + "description": "Optional. Description of additional giveaway prize", "type": [ - "bool" + "str" ], - "optional": true, - "name": "request_photo", - "description": "Optional. Pass True to request the users' photo" + "name": "prize_description" } ], - "name": "KeyboardButtonRequestUsers", - "description": "This object defines the criteria used to request suitable users. Information about the selected users will be shared with the bot when the corresponding button is pressed. More about requesting users »" + "description": "This object represents a message about the completion of a giveaway with public winners.", + "name": "GiveawayWinners" }, { "params": [ { + "optional": false, + "description": "Number of winners in the giveaway", "type": [ "int" ], - "optional": false, - "name": "request_id", - "description": "Signed 32-bit identifier of the request, which will be received back in the ChatShared object. Must be unique within the message" + "name": "winner_count" }, { + "optional": true, + "description": "Optional. Number of undistributed prizes", "type": [ - "bool" + "int" ], - "optional": false, - "name": "chat_is_channel", - "description": "Pass True to request a channel chat, pass False to request a group or a supergroup chat." + "name": "unclaimed_prize_count" }, { + "optional": true, + "description": "Optional. Message with the giveaway that was completed, if it wasn't deleted", "type": [ - "bool" + "Message" ], - "optional": true, - "name": "chat_is_forum", - "description": "Optional. Pass True to request a forum supergroup, pass False to request a non-forum chat. If not specified, no additional restrictions are applied." + "name": "giveaway_message" }, { + "optional": true, + "description": "Optional. True, if the giveaway is a Telegram Star giveaway. Otherwise, currently, the giveaway is a Telegram Premium giveaway.", "type": [ "bool" ], - "optional": true, - "name": "chat_has_username", - "description": "Optional. Pass True to request a supergroup or a channel with a username, pass False to request a chat without a username. If not specified, no additional restrictions are applied." - }, + "name": "is_star_giveaway" + } + ], + "description": "This object represents a service message about the completion of a giveaway without public winners.", + "name": "GiveawayCompleted" + }, + { + "params": [ { + "optional": true, + "description": "Optional. True, if the link preview is disabled", "type": [ "bool" ], - "optional": true, - "name": "chat_is_created", - "description": "Optional. Pass True to request a chat owned by the user. Otherwise, no additional restrictions are applied." + "name": "is_disabled" }, { - "type": [ - "ChatAdministratorRights" - ], "optional": true, - "name": "user_administrator_rights", - "description": "Optional. A JSON-serialized object listing the required administrator rights of the user in the chat. The rights must be a superset of bot_administrator_rights. If not specified, no additional restrictions are applied." - }, - { + "description": "Optional. URL to use for the link preview. If empty, then the first URL found in the message text will be used", "type": [ - "ChatAdministratorRights" + "str" ], - "optional": true, - "name": "bot_administrator_rights", - "description": "Optional. A JSON-serialized object listing the required administrator rights of the bot in the chat. The rights must be a subset of user_administrator_rights. If not specified, no additional restrictions are applied." + "name": "url" }, { - "type": [ - "bool" - ], "optional": true, - "name": "bot_is_member", - "description": "Optional. Pass True to request a chat with the bot as a member. Otherwise, no additional restrictions are applied." - }, - { + "description": "Optional. True, if the media in the link preview is supposed to be shrunk; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview", "type": [ "bool" ], - "optional": true, - "name": "request_title", - "description": "Optional. Pass True to request the chat's title" + "name": "prefer_small_media" }, { + "optional": true, + "description": "Optional. True, if the media in the link preview is supposed to be enlarged; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview", "type": [ "bool" ], - "optional": true, - "name": "request_username", - "description": "Optional. Pass True to request the chat's username" + "name": "prefer_large_media" }, { - "type": [ - "bool" - ], "optional": true, - "name": "request_photo", - "description": "Optional. Pass True to request the chat's photo" - } - ], - "name": "KeyboardButtonRequestChat", - "description": "This object defines the criteria used to request a suitable chat. Information about the selected chat will be shared with the bot when the corresponding button is pressed. The bot will be granted requested rights in the сhat if appropriate More about requesting chats »" - }, - { - "params": [ - { + "description": "Optional. True, if the link preview must be shown above the message text; otherwise, the link preview will be shown below the message text", "type": [ - "str" + "bool" ], - "optional": true, - "name": "type", - "description": "Optional. If quiz is passed, the user will be allowed to create only polls in the quiz mode. If regular is passed, only regular polls will be allowed. Otherwise, the user will be allowed to create a poll of any type." + "name": "show_above_text" } ], - "name": "KeyboardButtonPollType", - "description": "This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed." + "description": "Describes the options used for link preview generation.", + "name": "LinkPreviewOptions" }, { "params": [ { - "type": [ - "bool" - ], "optional": false, - "name": "remove_keyboard", - "description": "Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)" - }, - { + "description": "Total number of profile pictures the target user has", "type": [ - "bool" + "int" ], - "optional": true, - "name": "selective", - "description": "Optional. Use this parameter if you want to remove the keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.\n\nExample: A user votes in a poll, bot returns confirmation message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with poll options to users who haven't voted yet." - } - ], - "name": "ReplyKeyboardRemove", - "description": "Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button (see ReplyKeyboardMarkup)." - }, - { - "params": [ + "name": "total_count" + }, { + "optional": false, + "description": "Requested profile pictures (in up to 4 sizes each)", "type": [ [ "array", @@ -3814,1293 +4025,1741 @@ [ "array", [ - "InlineKeyboardButton" + "PhotoSize" ] ] ] ] ], - "optional": false, - "name": "inline_keyboard", - "description": "Array of button rows, each represented by an Array of InlineKeyboardButton objects" + "name": "photos" } ], - "name": "InlineKeyboardMarkup", - "description": "This object represents an inline keyboard that appears right next to the message it belongs to." + "description": "This object represent a user's profile pictures.", + "name": "UserProfilePhotos" }, { "params": [ { - "type": [ - "str" - ], "optional": false, - "name": "text", - "description": "Label text on the button" - }, - { + "description": "Identifier for this file, which can be used to download or reuse the file", "type": [ "str" ], - "optional": true, - "name": "url", - "description": "Optional. HTTP or tg:// URL to be opened when the button is pressed. Links tg://user?id= can be used to mention a user by their identifier without using a username, if this is allowed by their privacy settings." + "name": "file_id" }, { + "optional": false, + "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", "type": [ "str" ], - "optional": true, - "name": "callback_data", - "description": "Optional. Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes" + "name": "file_unique_id" }, { - "type": [ - "WebAppInfo" - ], "optional": true, - "name": "web_app", - "description": "Optional. Description of the Web App that will be launched when the user presses the button. The Web App will be able to send an arbitrary message on behalf of the user using the method answerWebAppQuery. Available only in private chats between a user and the bot." - }, - { + "description": "Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.", "type": [ - "LoginUrl" + "int" ], - "optional": true, - "name": "login_url", - "description": "Optional. An HTTPS URL used to automatically authorize the user. Can be used as a replacement for the Telegram Login Widget." + "name": "file_size" }, { + "optional": true, + "description": "Optional. File path. Use https://api.telegram.org/file/bot/ to get the file.", "type": [ "str" ], - "optional": true, - "name": "switch_inline_query", - "description": "Optional. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. May be empty, in which case just the bot's username will be inserted." - }, + "name": "file_path" + } + ], + "description": "This object represents a file ready to be downloaded. The file can be downloaded via the link https://api.telegram.org/file/bot/. 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.", + "name": "File" + }, + { + "params": [ { + "optional": false, + "description": "An HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps", "type": [ "str" ], - "optional": true, - "name": "switch_inline_query_current_chat", - "description": "Optional. If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field. May be empty, in which case only the bot's username will be inserted.\n\nThis offers a quick way for the user to open your bot in inline mode in the same chat - good for selecting something from multiple options." - }, + "name": "url" + } + ], + "description": "Describes a Web App.", + "name": "WebAppInfo" + }, + { + "params": [ { + "optional": false, + "description": "Array of button rows, each represented by an Array of KeyboardButton objects", "type": [ - "SwitchInlineQueryChosenChat" + [ + "array", + [ + [ + "array", + [ + "KeyboardButton" + ] + ] + ] + ] ], - "optional": true, - "name": "switch_inline_query_chosen_chat", - "description": "Optional. If set, pressing the button will prompt the user to select one of their chats of the specified type, open that chat and insert the bot's username and the specified inline query in the input field" + "name": "keyboard" }, { - "type": [ - "CallbackGame" - ], "optional": true, - "name": "callback_game", - "description": "Optional. Description of the game that will be launched when the user presses the button.\n\nNOTE: This type of button must always be the first button in the first row." - }, - { + "description": "Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.", "type": [ "bool" ], - "optional": true, - "name": "pay", - "description": "Optional. Specify True, to send a Pay button.\n\nNOTE: This type of button must always be the first button in the first row and can only be used in invoice messages." - } - ], - "name": "InlineKeyboardButton", - "description": "This object represents one button of an inline keyboard. You must use exactly one of the optional fields." - }, - { - "params": [ + "name": "is_persistent" + }, { + "optional": true, + "description": "Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.", "type": [ - "str" + "bool" ], - "optional": false, - "name": "url", - "description": "An HTTPS URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.\n\nNOTE: You must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization." + "name": "resize_keyboard" }, { + "optional": true, + "description": "Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.", "type": [ - "str" + "bool" ], - "optional": true, - "name": "forward_text", - "description": "Optional. New text of the button in forwarded messages." + "name": "one_time_keyboard" }, { + "optional": true, + "description": "Optional. The placeholder to be shown in the input field when the keyboard is active; 1-64 characters", "type": [ "str" ], - "optional": true, - "name": "bot_username", - "description": "Optional. Username of a bot, which will be used for user authorization. See Setting up a bot for more details. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See Linking your domain to the bot for more details." + "name": "input_field_placeholder" }, { + "optional": true, + "description": "Optional. Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.\n\nExample: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard.", "type": [ "bool" ], - "optional": true, - "name": "request_write_access", - "description": "Optional. Pass True to request the permission for your bot to send messages to the user." + "name": "selective" } ], - "name": "LoginUrl", - "description": "This object represents a parameter of the inline keyboard button used to automatically authorize a user. Serves as a great replacement for the Telegram Login Widget when the user is coming from Telegram. All the user needs to do is tap/click a button and confirm that they want to log in:" + "description": "This object represents a custom keyboard with reply options (see Introduction to bots for details and examples). Not supported in channels and for messages sent on behalf of a Telegram Business account.", + "name": "ReplyKeyboardMarkup" }, { "params": [ { + "optional": false, + "description": "Text of the button. If none of the optional fields are used, it will be sent as a message when the button is pressed", "type": [ "str" ], - "optional": true, - "name": "query", - "description": "Optional. The default inline query to be inserted in the input field. If left empty, only the bot's username will be inserted" + "name": "text" }, { + "optional": true, + "description": "Optional. If specified, pressing the button will open a list of suitable users. Identifiers of selected users will be sent to the bot in a “users_shared” service message. Available in private chats only.", "type": [ - "bool" + "KeyboardButtonRequestUsers" ], + "name": "request_users" + }, + { "optional": true, - "name": "allow_user_chats", - "description": "Optional. True, if private chats with users can be chosen" + "description": "Optional. If specified, pressing the button will open a list of suitable chats. Tapping on a chat will send its identifier to the bot in a “chat_shared” service message. Available in private chats only.", + "type": [ + "KeyboardButtonRequestChat" + ], + "name": "request_chat" }, { + "optional": true, + "description": "Optional. If True, the user's phone number will be sent as a contact when the button is pressed. Available in private chats only.", "type": [ "bool" ], - "optional": true, - "name": "allow_bot_chats", - "description": "Optional. True, if private chats with bots can be chosen" + "name": "request_contact" }, { + "optional": true, + "description": "Optional. If True, the user's current location will be sent when the button is pressed. Available in private chats only.", "type": [ "bool" ], - "optional": true, - "name": "allow_group_chats", - "description": "Optional. True, if group and supergroup chats can be chosen" + "name": "request_location" }, { + "optional": true, + "description": "Optional. If specified, the user will be asked to create a poll and send it to the bot when the button is pressed. Available in private chats only.", "type": [ - "bool" + "KeyboardButtonPollType" ], + "name": "request_poll" + }, + { "optional": true, - "name": "allow_channel_chats", - "description": "Optional. True, if channel chats can be chosen" + "description": "Optional. If specified, the described Web App will be launched when the button is pressed. The Web App will be able to send a “web_app_data” service message. Available in private chats only.", + "type": [ + "WebAppInfo" + ], + "name": "web_app" } ], - "name": "SwitchInlineQueryChosenChat", - "description": "This object represents an inline button that switches the current user to inline mode in a chosen chat, with an optional default inline query." + "description": "This object represents one button of the reply keyboard. At most one of the optional fields must be used to specify type of the button. For simple text buttons, String can be used instead of this object to specify the button text.", + "name": "KeyboardButton" }, { "params": [ { + "optional": false, + "description": "Signed 32-bit identifier of the request that will be received back in the UsersShared object. Must be unique within the message", "type": [ - "str" + "int" ], - "optional": false, - "name": "id", - "description": "Unique identifier for this query" + "name": "request_id" }, { + "optional": true, + "description": "Optional. Pass True to request bots, pass False to request regular users. If not specified, no additional restrictions are applied.", "type": [ - "User" + "bool" ], - "optional": false, - "name": "from", - "description": "Sender" + "name": "user_is_bot" }, { + "optional": true, + "description": "Optional. Pass True to request premium users, pass False to request non-premium users. If not specified, no additional restrictions are applied.", "type": [ - "MaybeInaccessibleMessage" + "bool" ], - "optional": true, - "name": "message", - "description": "Optional. Message sent by the bot with the callback button that originated the query" + "name": "user_is_premium" }, { + "optional": true, + "description": "Optional. The maximum number of users to be selected; 1-10. Defaults to 1.", "type": [ - "str" + "int" ], - "optional": true, - "name": "inline_message_id", - "description": "Optional. Identifier of the message sent via the bot in inline mode, that originated the query." + "name": "max_quantity" }, { + "optional": true, + "description": "Optional. Pass True to request the users' first and last names", "type": [ - "str" + "bool" ], - "optional": false, - "name": "chat_instance", - "description": "Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games." + "name": "request_name" }, { + "optional": true, + "description": "Optional. Pass True to request the users' usernames", "type": [ - "str" + "bool" ], - "optional": true, - "name": "data", - "description": "Optional. Data associated with the callback button. Be aware that the message originated the query can contain no callback buttons with this data." + "name": "request_username" }, { + "optional": true, + "description": "Optional. Pass True to request the users' photos", "type": [ - "str" + "bool" ], - "optional": true, - "name": "game_short_name", - "description": "Optional. Short name of a Game to be returned, serves as the unique identifier for the game" + "name": "request_photo" } ], - "name": "CallbackQuery", - "description": "This object represents an incoming callback query from a callback button in an inline keyboard. If the button that originated the query was attached to a message sent by the bot, the field message will be present. If the button was attached to a message sent via the bot (in inline mode), the field inline_message_id will be present. Exactly one of the fields data or game_short_name will be present." + "description": "This object defines the criteria used to request suitable users. Information about the selected users will be shared with the bot when the corresponding button is pressed. More about requesting users »", + "name": "KeyboardButtonRequestUsers" }, { "params": [ { + "optional": false, + "description": "Signed 32-bit identifier of the request, which will be received back in the ChatShared object. Must be unique within the message", "type": [ - "bool" + "int" ], - "optional": false, - "name": "force_reply", - "description": "Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'" + "name": "request_id" }, { + "optional": false, + "description": "Pass True to request a channel chat, pass False to request a group or a supergroup chat.", "type": [ - "str" + "bool" ], - "optional": true, - "name": "input_field_placeholder", - "description": "Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters" + "name": "chat_is_channel" }, { + "optional": true, + "description": "Optional. Pass True to request a forum supergroup, pass False to request a non-forum chat. If not specified, no additional restrictions are applied.", "type": [ "bool" ], + "name": "chat_is_forum" + }, + { "optional": true, - "name": "selective", - "description": "Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message." - } - ], - "name": "ForceReply", - "description": "Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode." - }, - { - "params": [ - { + "description": "Optional. Pass True to request a supergroup or a channel with a username, pass False to request a chat without a username. If not specified, no additional restrictions are applied.", "type": [ - "str" + "bool" ], - "optional": false, - "name": "small_file_id", - "description": "File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed." + "name": "chat_has_username" }, { + "optional": true, + "description": "Optional. Pass True to request a chat owned by the user. Otherwise, no additional restrictions are applied.", "type": [ - "str" + "bool" ], - "optional": false, - "name": "small_file_unique_id", - "description": "Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." + "name": "chat_is_created" }, { + "optional": true, + "description": "Optional. A JSON-serialized object listing the required administrator rights of the user in the chat. The rights must be a superset of bot_administrator_rights. If not specified, no additional restrictions are applied.", "type": [ - "str" + "ChatAdministratorRights" ], - "optional": false, - "name": "big_file_id", - "description": "File identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed." + "name": "user_administrator_rights" }, { + "optional": true, + "description": "Optional. A JSON-serialized object listing the required administrator rights of the bot in the chat. The rights must be a subset of user_administrator_rights. If not specified, no additional restrictions are applied.", "type": [ - "str" - ], - "optional": false, - "name": "big_file_unique_id", - "description": "Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." - } - ], - "name": "ChatPhoto", - "description": "This object represents a chat photo." - }, - { - "params": [ - { - "type": [ - "str" + "ChatAdministratorRights" ], - "optional": false, - "name": "invite_link", - "description": "The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with “…”." + "name": "bot_administrator_rights" }, { + "optional": true, + "description": "Optional. Pass True to request a chat with the bot as a member. Otherwise, no additional restrictions are applied.", "type": [ - "User" + "bool" ], - "optional": false, - "name": "creator", - "description": "Creator of the link" + "name": "bot_is_member" }, { + "optional": true, + "description": "Optional. Pass True to request the chat's title", "type": [ "bool" ], - "optional": false, - "name": "creates_join_request", - "description": "True, if users joining the chat via the link need to be approved by chat administrators" + "name": "request_title" }, { + "optional": true, + "description": "Optional. Pass True to request the chat's username", "type": [ "bool" ], - "optional": false, - "name": "is_primary", - "description": "True, if the link is primary" + "name": "request_username" }, { + "optional": true, + "description": "Optional. Pass True to request the chat's photo", "type": [ "bool" ], - "optional": false, - "name": "is_revoked", - "description": "True, if the link is revoked" - }, + "name": "request_photo" + } + ], + "description": "This object defines the criteria used to request a suitable chat. Information about the selected chat will be shared with the bot when the corresponding button is pressed. The bot will be granted requested rights in the chat if appropriate. More about requesting chats ».", + "name": "KeyboardButtonRequestChat" + }, + { + "params": [ { + "optional": true, + "description": "Optional. If quiz is passed, the user will be allowed to create only polls in the quiz mode. If regular is passed, only regular polls will be allowed. Otherwise, the user will be allowed to create a poll of any type.", "type": [ "str" ], - "optional": true, - "name": "name", - "description": "Optional. Invite link name" - }, + "name": "type" + } + ], + "description": "This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.", + "name": "KeyboardButtonPollType" + }, + { + "params": [ { + "optional": false, + "description": "Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)", "type": [ - "int" + "bool" ], - "optional": true, - "name": "expire_date", - "description": "Optional. Point in time (Unix timestamp) when the link will expire or has been expired" + "name": "remove_keyboard" }, { + "optional": true, + "description": "Optional. Use this parameter if you want to remove the keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.\n\nExample: A user votes in a poll, bot returns confirmation message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with poll options to users who haven't voted yet.", "type": [ - "int" + "bool" ], - "optional": true, - "name": "member_limit", - "description": "Optional. The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999" - }, + "name": "selective" + } + ], + "description": "Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button (see ReplyKeyboardMarkup). Not supported in channels and for messages sent on behalf of a Telegram Business account.", + "name": "ReplyKeyboardRemove" + }, + { + "params": [ { + "optional": false, + "description": "Array of button rows, each represented by an Array of InlineKeyboardButton objects", "type": [ - "int" + [ + "array", + [ + [ + "array", + [ + "InlineKeyboardButton" + ] + ] + ] + ] ], - "optional": true, - "name": "pending_join_request_count", - "description": "Optional. Number of pending join requests created using this link" + "name": "inline_keyboard" } ], - "name": "ChatInviteLink", - "description": "Represents an invite link for a chat." + "description": "This object represents an inline keyboard that appears right next to the message it belongs to.", + "name": "InlineKeyboardMarkup" }, { "params": [ { + "optional": false, + "description": "Label text on the button", "type": [ - "bool" + "str" ], - "optional": false, - "name": "is_anonymous", - "description": "True, if the user's presence in the chat is hidden" + "name": "text" }, { + "optional": true, + "description": "Optional. HTTP or tg:// URL to be opened when the button is pressed. Links tg://user?id= can be used to mention a user by their identifier without using a username, if this is allowed by their privacy settings.", "type": [ - "bool" + "str" ], - "optional": false, - "name": "can_manage_chat", - "description": "True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege." + "name": "url" }, { + "optional": true, + "description": "Optional. Data to be sent in a callback query to the bot when the button is pressed, 1-64 bytes", "type": [ - "bool" + "str" ], - "optional": false, - "name": "can_delete_messages", - "description": "True, if the administrator can delete messages of other users" + "name": "callback_data" }, { + "optional": true, + "description": "Optional. Description of the Web App that will be launched when the user presses the button. The Web App will be able to send an arbitrary message on behalf of the user using the method answerWebAppQuery. Available only in private chats between a user and the bot. Not supported for messages sent on behalf of a Telegram Business account.", "type": [ - "bool" + "WebAppInfo" ], - "optional": false, - "name": "can_manage_video_chats", - "description": "True, if the administrator can manage video chats" + "name": "web_app" }, { + "optional": true, + "description": "Optional. An HTTPS URL used to automatically authorize the user. Can be used as a replacement for the Telegram Login Widget.", "type": [ - "bool" + "LoginUrl" ], - "optional": false, - "name": "can_restrict_members", - "description": "True, if the administrator can restrict, ban or unban chat members, or access supergroup statistics" + "name": "login_url" }, { + "optional": true, + "description": "Optional. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. May be empty, in which case just the bot's username will be inserted. Not supported for messages sent on behalf of a Telegram Business account.", "type": [ - "bool" + "str" ], - "optional": false, - "name": "can_promote_members", - "description": "True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by the user)" + "name": "switch_inline_query" }, { + "optional": true, + "description": "Optional. If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field. May be empty, in which case only the bot's username will be inserted.\n\nThis offers a quick way for the user to open your bot in inline mode in the same chat - good for selecting something from multiple options. Not supported in channels and for messages sent on behalf of a Telegram Business account.", "type": [ - "bool" + "str" ], - "optional": false, - "name": "can_change_info", - "description": "True, if the user is allowed to change the chat title, photo and other settings" + "name": "switch_inline_query_current_chat" }, { + "optional": true, + "description": "Optional. If set, pressing the button will prompt the user to select one of their chats of the specified type, open that chat and insert the bot's username and the specified inline query in the input field. Not supported for messages sent on behalf of a Telegram Business account.", "type": [ - "bool" + "SwitchInlineQueryChosenChat" ], - "optional": false, - "name": "can_invite_users", - "description": "True, if the user is allowed to invite new users to the chat" + "name": "switch_inline_query_chosen_chat" }, { + "optional": true, + "description": "Optional. Description of the button that copies the specified text to the clipboard.", "type": [ - "bool" + "CopyTextButton" ], - "optional": false, - "name": "can_post_stories", - "description": "True, if the administrator can post stories to the chat" + "name": "copy_text" }, { + "optional": true, + "description": "Optional. Description of the game that will be launched when the user presses the button.\n\nNOTE: This type of button must always be the first button in the first row.", "type": [ - "bool" + "CallbackGame" ], - "optional": false, - "name": "can_edit_stories", - "description": "True, if the administrator can edit stories posted by other users" + "name": "callback_game" }, { + "optional": true, + "description": "Optional. Specify True, to send a Pay button. Substrings “” and “XTR” in the buttons's text will be replaced with a Telegram Star icon.\n\nNOTE: This type of button must always be the first button in the first row and can only be used in invoice messages.", "type": [ "bool" ], + "name": "pay" + } + ], + "description": "This object represents one button of an inline keyboard. Exactly one of the optional fields must be used to specify type of the button.", + "name": "InlineKeyboardButton" + }, + { + "params": [ + { "optional": false, - "name": "can_delete_stories", - "description": "True, if the administrator can delete stories posted by other users" + "description": "An HTTPS URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.\n\nNOTE: You must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization.", + "type": [ + "str" + ], + "name": "url" }, { + "optional": true, + "description": "Optional. New text of the button in forwarded messages.", "type": [ - "bool" + "str" ], + "name": "forward_text" + }, + { "optional": true, - "name": "can_post_messages", - "description": "Optional. True, if the administrator can post messages in the channel, or access channel statistics; for channels only" + "description": "Optional. Username of a bot, which will be used for user authorization. See Setting up a bot for more details. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See Linking your domain to the bot for more details.", + "type": [ + "str" + ], + "name": "bot_username" }, { + "optional": true, + "description": "Optional. Pass True to request the permission for your bot to send messages to the user.", "type": [ "bool" ], + "name": "request_write_access" + } + ], + "description": "This object represents a parameter of the inline keyboard button used to automatically authorize a user. Serves as a great replacement for the Telegram Login Widget when the user is coming from Telegram. All the user needs to do is tap/click a button and confirm that they want to log in:", + "name": "LoginUrl" + }, + { + "params": [ + { "optional": true, - "name": "can_edit_messages", - "description": "Optional. True, if the administrator can edit messages of other users and can pin messages; for channels only" + "description": "Optional. The default inline query to be inserted in the input field. If left empty, only the bot's username will be inserted", + "type": [ + "str" + ], + "name": "query" }, { + "optional": true, + "description": "Optional. True, if private chats with users can be chosen", "type": [ "bool" ], + "name": "allow_user_chats" + }, + { "optional": true, - "name": "can_pin_messages", - "description": "Optional. True, if the user is allowed to pin messages; for groups and supergroups only" + "description": "Optional. True, if private chats with bots can be chosen", + "type": [ + "bool" + ], + "name": "allow_bot_chats" }, { + "optional": true, + "description": "Optional. True, if group and supergroup chats can be chosen", "type": [ "bool" ], + "name": "allow_group_chats" + }, + { "optional": true, - "name": "can_manage_topics", - "description": "Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only" + "description": "Optional. True, if channel chats can be chosen", + "type": [ + "bool" + ], + "name": "allow_channel_chats" } ], - "name": "ChatAdministratorRights", - "description": "Represents the rights of an administrator in a chat." + "description": "This object represents an inline button that switches the current user to inline mode in a chosen chat, with an optional default inline query.", + "name": "SwitchInlineQueryChosenChat" }, { "params": [ { + "optional": false, + "description": "The text to be copied to the clipboard; 1-256 characters", "type": [ - "Chat" + "str" ], + "name": "text" + } + ], + "description": "This object represents an inline keyboard button that copies specified text to the clipboard.", + "name": "CopyTextButton" + }, + { + "params": [ + { "optional": false, - "name": "chat", - "description": "Chat the user belongs to" + "description": "Unique identifier for this query", + "type": [ + "str" + ], + "name": "id" }, { + "optional": false, + "description": "Sender", "type": [ "User" ], - "optional": false, - "name": "from", - "description": "Performer of the action, which resulted in the change" + "name": "from" }, { + "optional": true, + "description": "Optional. Message sent by the bot with the callback button that originated the query", "type": [ - "int" + "MaybeInaccessibleMessage" ], - "optional": false, - "name": "date", - "description": "Date the change was done in Unix time" + "name": "message" }, { + "optional": true, + "description": "Optional. Identifier of the message sent via the bot in inline mode, that originated the query.", "type": [ - "ChatMember" + "str" ], + "name": "inline_message_id" + }, + { "optional": false, - "name": "old_chat_member", - "description": "Previous information about the chat member" + "description": "Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.", + "type": [ + "str" + ], + "name": "chat_instance" }, { + "optional": true, + "description": "Optional. Data associated with the callback button. Be aware that the message originated the query can contain no callback buttons with this data.", "type": [ - "ChatMember" + "str" ], - "optional": false, - "name": "new_chat_member", - "description": "New information about the chat member" + "name": "data" }, { + "optional": true, + "description": "Optional. Short name of a Game to be returned, serves as the unique identifier for the game", "type": [ - "ChatInviteLink" + "str" + ], + "name": "game_short_name" + } + ], + "description": "This object represents an incoming callback query from a callback button in an inline keyboard. If the button that originated the query was attached to a message sent by the bot, the field message will be present. If the button was attached to a message sent via the bot (in inline mode), the field inline_message_id will be present. Exactly one of the fields data or game_short_name will be present.", + "name": "CallbackQuery" + }, + { + "params": [ + { + "optional": false, + "description": "Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'", + "type": [ + "bool" ], + "name": "force_reply" + }, + { "optional": true, - "name": "invite_link", - "description": "Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only." + "description": "Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters", + "type": [ + "str" + ], + "name": "input_field_placeholder" }, { + "optional": true, + "description": "Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.", "type": [ "bool" ], - "optional": true, - "name": "via_chat_folder_invite_link", - "description": "Optional. True, if the user joined the chat via a chat folder invite link" + "name": "selective" } ], - "name": "ChatMemberUpdated", - "description": "This object represents changes in the status of a chat member." + "description": "Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode. Not supported in channels and for messages sent on behalf of a Telegram Business account.", + "name": "ForceReply" }, { "params": [ { + "optional": false, + "description": "File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.", "type": [ "str" ], - "optional": false, - "name": "status", - "description": "The member's status in the chat, always “creator”" + "name": "small_file_id" }, { + "optional": false, + "description": "Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", "type": [ - "User" + "str" ], - "optional": false, - "name": "user", - "description": "Information about the user" + "name": "small_file_unique_id" }, { + "optional": false, + "description": "File identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.", "type": [ - "bool" + "str" ], - "optional": false, - "name": "is_anonymous", - "description": "True, if the user's presence in the chat is hidden" + "name": "big_file_id" }, { + "optional": false, + "description": "Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", "type": [ "str" ], - "optional": true, - "name": "custom_title", - "description": "Optional. Custom title for this user" + "name": "big_file_unique_id" } ], - "name": "ChatMemberOwner", - "description": "Represents a chat member that owns the chat and has all administrator privileges." + "description": "This object represents a chat photo.", + "name": "ChatPhoto" }, { "params": [ { + "optional": false, + "description": "The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with “…”.", "type": [ "str" ], - "optional": false, - "name": "status", - "description": "The member's status in the chat, always “administrator”" + "name": "invite_link" }, { + "optional": false, + "description": "Creator of the link", "type": [ "User" ], - "optional": false, - "name": "user", - "description": "Information about the user" + "name": "creator" }, { + "optional": false, + "description": "True, if users joining the chat via the link need to be approved by chat administrators", "type": [ "bool" ], - "optional": false, - "name": "can_be_edited", - "description": "True, if the bot is allowed to edit administrator privileges of that user" + "name": "creates_join_request" }, { + "optional": false, + "description": "True, if the link is primary", "type": [ "bool" ], - "optional": false, - "name": "is_anonymous", - "description": "True, if the user's presence in the chat is hidden" + "name": "is_primary" }, { + "optional": false, + "description": "True, if the link is revoked", "type": [ "bool" ], - "optional": false, - "name": "can_manage_chat", - "description": "True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege." + "name": "is_revoked" }, { + "optional": true, + "description": "Optional. Invite link name", "type": [ - "bool" + "str" ], - "optional": false, - "name": "can_delete_messages", - "description": "True, if the administrator can delete messages of other users" + "name": "name" }, { + "optional": true, + "description": "Optional. Point in time (Unix timestamp) when the link will expire or has been expired", "type": [ - "bool" + "int" ], - "optional": false, - "name": "can_manage_video_chats", - "description": "True, if the administrator can manage video chats" + "name": "expire_date" }, { + "optional": true, + "description": "Optional. The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999", "type": [ - "bool" + "int" ], - "optional": false, - "name": "can_restrict_members", - "description": "True, if the administrator can restrict, ban or unban chat members, or access supergroup statistics" + "name": "member_limit" }, { + "optional": true, + "description": "Optional. Number of pending join requests created using this link", "type": [ - "bool" + "int" ], - "optional": false, - "name": "can_promote_members", - "description": "True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by the user)" + "name": "pending_join_request_count" }, { + "optional": true, + "description": "Optional. The number of seconds the subscription will be active for before the next payment", "type": [ - "bool" + "int" ], - "optional": false, - "name": "can_change_info", - "description": "True, if the user is allowed to change the chat title, photo and other settings" + "name": "subscription_period" }, { + "optional": true, + "description": "Optional. The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat using the link", "type": [ - "bool" + "int" ], - "optional": false, - "name": "can_invite_users", - "description": "True, if the user is allowed to invite new users to the chat" + "name": "subscription_price" + } + ], + "description": "Represents an invite link for a chat.", + "name": "ChatInviteLink" + }, + { + "params": [ + { + "optional": false, + "description": "True, if the user's presence in the chat is hidden", + "type": [ + "bool" + ], + "name": "is_anonymous" }, { + "optional": false, + "description": "True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege.", "type": [ "bool" ], + "name": "can_manage_chat" + }, + { "optional": false, - "name": "can_post_stories", - "description": "True, if the administrator can post stories to the chat" + "description": "True, if the administrator can delete messages of other users", + "type": [ + "bool" + ], + "name": "can_delete_messages" }, { + "optional": false, + "description": "True, if the administrator can manage video chats", "type": [ "bool" ], + "name": "can_manage_video_chats" + }, + { "optional": false, - "name": "can_edit_stories", - "description": "True, if the administrator can edit stories posted by other users" + "description": "True, if the administrator can restrict, ban or unban chat members, or access supergroup statistics", + "type": [ + "bool" + ], + "name": "can_restrict_members" }, { + "optional": false, + "description": "True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by the user)", "type": [ "bool" ], + "name": "can_promote_members" + }, + { "optional": false, - "name": "can_delete_stories", - "description": "True, if the administrator can delete stories posted by other users" + "description": "True, if the user is allowed to change the chat title, photo and other settings", + "type": [ + "bool" + ], + "name": "can_change_info" }, { + "optional": false, + "description": "True, if the user is allowed to invite new users to the chat", "type": [ "bool" ], - "optional": true, - "name": "can_post_messages", - "description": "Optional. True, if the administrator can post messages in the channel, or access channel statistics; for channels only" + "name": "can_invite_users" }, { + "optional": false, + "description": "True, if the administrator can post stories to the chat", "type": [ "bool" ], - "optional": true, - "name": "can_edit_messages", - "description": "Optional. True, if the administrator can edit messages of other users and can pin messages; for channels only" + "name": "can_post_stories" }, { + "optional": false, + "description": "True, if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access the chat's story archive", "type": [ "bool" ], - "optional": true, - "name": "can_pin_messages", - "description": "Optional. True, if the user is allowed to pin messages; for groups and supergroups only" + "name": "can_edit_stories" + }, + { + "optional": false, + "description": "True, if the administrator can delete stories posted by other users", + "type": [ + "bool" + ], + "name": "can_delete_stories" }, { + "optional": true, + "description": "Optional. True, if the administrator can post messages in the channel, or access channel statistics; for channels only", "type": [ "bool" ], + "name": "can_post_messages" + }, + { "optional": true, - "name": "can_manage_topics", - "description": "Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only" + "description": "Optional. True, if the administrator can edit messages of other users and can pin messages; for channels only", + "type": [ + "bool" + ], + "name": "can_edit_messages" }, { + "optional": true, + "description": "Optional. True, if the user is allowed to pin messages; for groups and supergroups only", "type": [ - "str" + "bool" ], + "name": "can_pin_messages" + }, + { "optional": true, - "name": "custom_title", - "description": "Optional. Custom title for this user" + "description": "Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only", + "type": [ + "bool" + ], + "name": "can_manage_topics" } ], - "name": "ChatMemberAdministrator", - "description": "Represents a chat member that has some additional privileges." + "description": "Represents the rights of an administrator in a chat.", + "name": "ChatAdministratorRights" }, { "params": [ { + "optional": false, + "description": "Chat the user belongs to", "type": [ - "str" + "Chat" ], - "optional": false, - "name": "status", - "description": "The member's status in the chat, always “member”" + "name": "chat" }, { + "optional": false, + "description": "Performer of the action, which resulted in the change", "type": [ "User" ], + "name": "from" + }, + { + "optional": false, + "description": "Date the change was done in Unix time", + "type": [ + "int" + ], + "name": "date" + }, + { + "optional": false, + "description": "Previous information about the chat member", + "type": [ + "ChatMember" + ], + "name": "old_chat_member" + }, + { "optional": false, - "name": "user", - "description": "Information about the user" + "description": "New information about the chat member", + "type": [ + "ChatMember" + ], + "name": "new_chat_member" + }, + { + "optional": true, + "description": "Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.", + "type": [ + "ChatInviteLink" + ], + "name": "invite_link" + }, + { + "optional": true, + "description": "Optional. True, if the user joined the chat after sending a direct join request without using an invite link and being approved by an administrator", + "type": [ + "bool" + ], + "name": "via_join_request" + }, + { + "optional": true, + "description": "Optional. True, if the user joined the chat via a chat folder invite link", + "type": [ + "bool" + ], + "name": "via_chat_folder_invite_link" } ], - "name": "ChatMemberMember", - "description": "Represents a chat member that has no additional privileges or restrictions." + "description": "This object represents changes in the status of a chat member.", + "name": "ChatMemberUpdated" }, { "params": [ { + "optional": false, + "description": "The member's status in the chat, always “creator”", "type": [ "str" ], - "optional": false, - "name": "status", - "description": "The member's status in the chat, always “restricted”" + "name": "status" }, { + "optional": false, + "description": "Information about the user", "type": [ "User" ], - "optional": false, - "name": "user", - "description": "Information about the user" + "name": "user" }, { + "optional": false, + "description": "True, if the user's presence in the chat is hidden", "type": [ "bool" ], - "optional": false, - "name": "is_member", - "description": "True, if the user is a member of the chat at the moment of the request" + "name": "is_anonymous" }, { + "optional": true, + "description": "Optional. Custom title for this user", "type": [ - "bool" + "str" ], + "name": "custom_title" + } + ], + "description": "Represents a chat member that owns the chat and has all administrator privileges.", + "name": "ChatMemberOwner" + }, + { + "params": [ + { "optional": false, - "name": "can_send_messages", - "description": "True, if the user is allowed to send text messages, contacts, giveaways, giveaway winners, invoices, locations and venues" + "description": "The member's status in the chat, always “administrator”", + "type": [ + "str" + ], + "name": "status" }, { + "optional": false, + "description": "Information about the user", "type": [ - "bool" + "User" ], - "optional": false, - "name": "can_send_audios", - "description": "True, if the user is allowed to send audios" + "name": "user" }, { + "optional": false, + "description": "True, if the bot is allowed to edit administrator privileges of that user", "type": [ "bool" ], - "optional": false, - "name": "can_send_documents", - "description": "True, if the user is allowed to send documents" + "name": "can_be_edited" }, { + "optional": false, + "description": "True, if the user's presence in the chat is hidden", "type": [ "bool" ], - "optional": false, - "name": "can_send_photos", - "description": "True, if the user is allowed to send photos" + "name": "is_anonymous" }, { + "optional": false, + "description": "True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege.", "type": [ "bool" ], - "optional": false, - "name": "can_send_videos", - "description": "True, if the user is allowed to send videos" + "name": "can_manage_chat" }, { + "optional": false, + "description": "True, if the administrator can delete messages of other users", "type": [ "bool" ], - "optional": false, - "name": "can_send_video_notes", - "description": "True, if the user is allowed to send video notes" + "name": "can_delete_messages" }, { + "optional": false, + "description": "True, if the administrator can manage video chats", "type": [ "bool" ], - "optional": false, - "name": "can_send_voice_notes", - "description": "True, if the user is allowed to send voice notes" + "name": "can_manage_video_chats" }, { + "optional": false, + "description": "True, if the administrator can restrict, ban or unban chat members, or access supergroup statistics", "type": [ "bool" ], - "optional": false, - "name": "can_send_polls", - "description": "True, if the user is allowed to send polls" + "name": "can_restrict_members" }, { + "optional": false, + "description": "True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by the user)", "type": [ "bool" ], - "optional": false, - "name": "can_send_other_messages", - "description": "True, if the user is allowed to send animations, games, stickers and use inline bots" + "name": "can_promote_members" }, { + "optional": false, + "description": "True, if the user is allowed to change the chat title, photo and other settings", "type": [ "bool" ], - "optional": false, - "name": "can_add_web_page_previews", - "description": "True, if the user is allowed to add web page previews to their messages" + "name": "can_change_info" }, { + "optional": false, + "description": "True, if the user is allowed to invite new users to the chat", "type": [ "bool" ], + "name": "can_invite_users" + }, + { "optional": false, - "name": "can_change_info", - "description": "True, if the user is allowed to change the chat title, photo and other settings" + "description": "True, if the administrator can post stories to the chat", + "type": [ + "bool" + ], + "name": "can_post_stories" }, { + "optional": false, + "description": "True, if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access the chat's story archive", "type": [ "bool" ], + "name": "can_edit_stories" + }, + { "optional": false, - "name": "can_invite_users", - "description": "True, if the user is allowed to invite new users to the chat" + "description": "True, if the administrator can delete stories posted by other users", + "type": [ + "bool" + ], + "name": "can_delete_stories" }, { + "optional": true, + "description": "Optional. True, if the administrator can post messages in the channel, or access channel statistics; for channels only", "type": [ "bool" ], - "optional": false, - "name": "can_pin_messages", - "description": "True, if the user is allowed to pin messages" + "name": "can_post_messages" }, { + "optional": true, + "description": "Optional. True, if the administrator can edit messages of other users and can pin messages; for channels only", "type": [ "bool" ], - "optional": false, - "name": "can_manage_topics", - "description": "True, if the user is allowed to create forum topics" + "name": "can_edit_messages" }, { + "optional": true, + "description": "Optional. True, if the user is allowed to pin messages; for groups and supergroups only", "type": [ - "int" + "bool" ], - "optional": false, - "name": "until_date", - "description": "Date when restrictions will be lifted for this user; Unix time. If 0, then the user is restricted forever" - } - ], - "name": "ChatMemberRestricted", - "description": "Represents a chat member that is under certain restrictions in the chat. Supergroups only." - }, - { - "params": [ + "name": "can_pin_messages" + }, { + "optional": true, + "description": "Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only", "type": [ - "str" + "bool" ], - "optional": false, - "name": "status", - "description": "The member's status in the chat, always “left”" + "name": "can_manage_topics" }, { + "optional": true, + "description": "Optional. Custom title for this user", "type": [ - "User" + "str" ], - "optional": false, - "name": "user", - "description": "Information about the user" + "name": "custom_title" } ], - "name": "ChatMemberLeft", - "description": "Represents a chat member that isn't currently a member of the chat, but may join it themselves." + "description": "Represents a chat member that has some additional privileges.", + "name": "ChatMemberAdministrator" }, { "params": [ { + "optional": false, + "description": "The member's status in the chat, always “member”", "type": [ "str" ], - "optional": false, - "name": "status", - "description": "The member's status in the chat, always “kicked”" + "name": "status" }, { + "optional": false, + "description": "Information about the user", "type": [ "User" ], - "optional": false, - "name": "user", - "description": "Information about the user" + "name": "user" }, { + "optional": true, + "description": "Optional. Date when the user's subscription will expire; Unix time", "type": [ "int" ], - "optional": false, - "name": "until_date", - "description": "Date when restrictions will be lifted for this user; Unix time. If 0, then the user is banned forever" + "name": "until_date" } ], - "name": "ChatMemberBanned", - "description": "Represents a chat member that was banned in the chat and can't return to the chat or view chat messages." + "description": "Represents a chat member that has no additional privileges or restrictions.", + "name": "ChatMemberMember" }, { "params": [ { + "optional": false, + "description": "The member's status in the chat, always “restricted”", "type": [ - "Chat" + "str" ], - "optional": false, - "name": "chat", - "description": "Chat to which the request was sent" + "name": "status" }, { + "optional": false, + "description": "Information about the user", "type": [ "User" ], - "optional": false, - "name": "from", - "description": "User that sent the join request" + "name": "user" }, { - "type": [ - "int" - ], "optional": false, - "name": "user_chat_id", - "description": "Identifier of a private chat with the user who sent the join request. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. The bot can use this identifier for 5 minutes to send messages until the join request is processed, assuming no other administrator contacted the user." - }, - { + "description": "True, if the user is a member of the chat at the moment of the request", "type": [ - "int" + "bool" ], - "optional": false, - "name": "date", - "description": "Date the request was sent in Unix time" + "name": "is_member" }, { + "optional": false, + "description": "True, if the user is allowed to send text messages, contacts, giveaways, giveaway winners, invoices, locations and venues", "type": [ - "str" + "bool" ], - "optional": true, - "name": "bio", - "description": "Optional. Bio of the user." + "name": "can_send_messages" }, { - "type": [ - "ChatInviteLink" - ], - "optional": true, - "name": "invite_link", - "description": "Optional. Chat invite link that was used by the user to send the join request" - } - ], - "name": "ChatJoinRequest", - "description": "Represents a join request sent to a chat." - }, - { - "params": [ - { + "optional": false, + "description": "True, if the user is allowed to send audios", "type": [ "bool" ], - "optional": true, - "name": "can_send_messages", - "description": "Optional. True, if the user is allowed to send text messages, contacts, giveaways, giveaway winners, invoices, locations and venues" + "name": "can_send_audios" }, { + "optional": false, + "description": "True, if the user is allowed to send documents", "type": [ "bool" ], - "optional": true, - "name": "can_send_audios", - "description": "Optional. True, if the user is allowed to send audios" + "name": "can_send_documents" }, { + "optional": false, + "description": "True, if the user is allowed to send photos", "type": [ "bool" ], - "optional": true, - "name": "can_send_documents", - "description": "Optional. True, if the user is allowed to send documents" + "name": "can_send_photos" }, { + "optional": false, + "description": "True, if the user is allowed to send videos", "type": [ "bool" ], - "optional": true, - "name": "can_send_photos", - "description": "Optional. True, if the user is allowed to send photos" + "name": "can_send_videos" }, { + "optional": false, + "description": "True, if the user is allowed to send video notes", "type": [ "bool" ], - "optional": true, - "name": "can_send_videos", - "description": "Optional. True, if the user is allowed to send videos" + "name": "can_send_video_notes" }, { + "optional": false, + "description": "True, if the user is allowed to send voice notes", "type": [ "bool" ], - "optional": true, - "name": "can_send_video_notes", - "description": "Optional. True, if the user is allowed to send video notes" + "name": "can_send_voice_notes" }, { + "optional": false, + "description": "True, if the user is allowed to send polls", "type": [ "bool" ], - "optional": true, - "name": "can_send_voice_notes", - "description": "Optional. True, if the user is allowed to send voice notes" + "name": "can_send_polls" }, { + "optional": false, + "description": "True, if the user is allowed to send animations, games, stickers and use inline bots", "type": [ "bool" ], - "optional": true, - "name": "can_send_polls", - "description": "Optional. True, if the user is allowed to send polls" + "name": "can_send_other_messages" }, { + "optional": false, + "description": "True, if the user is allowed to add web page previews to their messages", "type": [ "bool" ], - "optional": true, - "name": "can_send_other_messages", - "description": "Optional. True, if the user is allowed to send animations, games, stickers and use inline bots" + "name": "can_add_web_page_previews" }, { + "optional": false, + "description": "True, if the user is allowed to change the chat title, photo and other settings", "type": [ "bool" ], - "optional": true, - "name": "can_add_web_page_previews", - "description": "Optional. True, if the user is allowed to add web page previews to their messages" + "name": "can_change_info" }, { + "optional": false, + "description": "True, if the user is allowed to invite new users to the chat", "type": [ "bool" ], - "optional": true, - "name": "can_change_info", - "description": "Optional. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups" + "name": "can_invite_users" }, { + "optional": false, + "description": "True, if the user is allowed to pin messages", "type": [ "bool" ], - "optional": true, - "name": "can_invite_users", - "description": "Optional. True, if the user is allowed to invite new users to the chat" + "name": "can_pin_messages" }, { + "optional": false, + "description": "True, if the user is allowed to create forum topics", "type": [ "bool" ], - "optional": true, - "name": "can_pin_messages", - "description": "Optional. True, if the user is allowed to pin messages. Ignored in public supergroups" + "name": "can_manage_topics" }, { + "optional": false, + "description": "Date when restrictions will be lifted for this user; Unix time. If 0, then the user is restricted forever", "type": [ - "bool" + "int" ], - "optional": true, - "name": "can_manage_topics", - "description": "Optional. True, if the user is allowed to create forum topics. If omitted defaults to the value of can_pin_messages" + "name": "until_date" } ], - "name": "ChatPermissions", - "description": "Describes actions that a non-administrator user is allowed to take in a chat." + "description": "Represents a chat member that is under certain restrictions in the chat. Supergroups only.", + "name": "ChatMemberRestricted" }, { "params": [ { - "type": [ - "int" - ], "optional": false, - "name": "day", - "description": "Day of the user's birth; 1-31" - }, - { + "description": "The member's status in the chat, always “left”", "type": [ - "int" + "str" ], - "optional": false, - "name": "month", - "description": "Month of the user's birth; 1-12" + "name": "status" }, { + "optional": false, + "description": "Information about the user", "type": [ - "int" + "User" ], - "optional": true, - "name": "year", - "description": "Optional. Year of the user's birth" + "name": "user" } ], - "name": "Birthdate", - "description": "No description available." + "description": "Represents a chat member that isn't currently a member of the chat, but may join it themselves.", + "name": "ChatMemberLeft" }, { "params": [ { + "optional": false, + "description": "The member's status in the chat, always “kicked”", "type": [ "str" ], - "optional": true, - "name": "title", - "description": "Optional. Title text of the business intro" + "name": "status" }, { + "optional": false, + "description": "Information about the user", "type": [ - "str" + "User" ], - "optional": true, - "name": "message", - "description": "Optional. Message text of the business intro" + "name": "user" }, { + "optional": false, + "description": "Date when restrictions will be lifted for this user; Unix time. If 0, then the user is banned forever", "type": [ - "Sticker" + "int" ], - "optional": true, - "name": "sticker", - "description": "Optional. Sticker of the business intro" + "name": "until_date" } ], - "name": "BusinessIntro", - "description": "No description available." + "description": "Represents a chat member that was banned in the chat and can't return to the chat or view chat messages.", + "name": "ChatMemberBanned" }, { "params": [ { + "optional": false, + "description": "Chat to which the request was sent", "type": [ - "str" + "Chat" ], - "optional": false, - "name": "address", - "description": "Address of the business" + "name": "chat" }, { + "optional": false, + "description": "User that sent the join request", "type": [ - "Location" + "User" + ], + "name": "from" + }, + { + "optional": false, + "description": "Identifier of a private chat with the user who sent the join request. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. The bot can use this identifier for 5 minutes to send messages until the join request is processed, assuming no other administrator contacted the user.", + "type": [ + "int" + ], + "name": "user_chat_id" + }, + { + "optional": false, + "description": "Date the request was sent in Unix time", + "type": [ + "int" + ], + "name": "date" + }, + { + "optional": true, + "description": "Optional. Bio of the user.", + "type": [ + "str" + ], + "name": "bio" + }, + { + "optional": true, + "description": "Optional. Chat invite link that was used by the user to send the join request", + "type": [ + "ChatInviteLink" + ], + "name": "invite_link" + } + ], + "description": "Represents a join request sent to a chat.", + "name": "ChatJoinRequest" + }, + { + "params": [ + { + "optional": true, + "description": "Optional. True, if the user is allowed to send text messages, contacts, giveaways, giveaway winners, invoices, locations and venues", + "type": [ + "bool" + ], + "name": "can_send_messages" + }, + { + "optional": true, + "description": "Optional. True, if the user is allowed to send audios", + "type": [ + "bool" + ], + "name": "can_send_audios" + }, + { + "optional": true, + "description": "Optional. True, if the user is allowed to send documents", + "type": [ + "bool" + ], + "name": "can_send_documents" + }, + { + "optional": true, + "description": "Optional. True, if the user is allowed to send photos", + "type": [ + "bool" + ], + "name": "can_send_photos" + }, + { + "optional": true, + "description": "Optional. True, if the user is allowed to send videos", + "type": [ + "bool" + ], + "name": "can_send_videos" + }, + { + "optional": true, + "description": "Optional. True, if the user is allowed to send video notes", + "type": [ + "bool" + ], + "name": "can_send_video_notes" + }, + { + "optional": true, + "description": "Optional. True, if the user is allowed to send voice notes", + "type": [ + "bool" + ], + "name": "can_send_voice_notes" + }, + { + "optional": true, + "description": "Optional. True, if the user is allowed to send polls", + "type": [ + "bool" + ], + "name": "can_send_polls" + }, + { + "optional": true, + "description": "Optional. True, if the user is allowed to send animations, games, stickers and use inline bots", + "type": [ + "bool" + ], + "name": "can_send_other_messages" + }, + { + "optional": true, + "description": "Optional. True, if the user is allowed to add web page previews to their messages", + "type": [ + "bool" + ], + "name": "can_add_web_page_previews" + }, + { + "optional": true, + "description": "Optional. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups", + "type": [ + "bool" + ], + "name": "can_change_info" + }, + { + "optional": true, + "description": "Optional. True, if the user is allowed to invite new users to the chat", + "type": [ + "bool" + ], + "name": "can_invite_users" + }, + { + "optional": true, + "description": "Optional. True, if the user is allowed to pin messages. Ignored in public supergroups", + "type": [ + "bool" ], + "name": "can_pin_messages" + }, + { "optional": true, - "name": "location", - "description": "Optional. Location of the business" + "description": "Optional. True, if the user is allowed to create forum topics. If omitted defaults to the value of can_pin_messages", + "type": [ + "bool" + ], + "name": "can_manage_topics" } ], - "name": "BusinessLocation", - "description": "No description available." + "description": "Describes actions that a non-administrator user is allowed to take in a chat.", + "name": "ChatPermissions" }, { "params": [ { + "optional": false, + "description": "Day of the user's birth; 1-31", "type": [ "int" ], + "name": "day" + }, + { "optional": false, - "name": "opening_minute", - "description": "The minute's sequence number in a week, starting on Monday, marking the start of the time interval during which the business is open; 0 - 7 24 60" + "description": "Month of the user's birth; 1-12", + "type": [ + "int" + ], + "name": "month" }, { + "optional": true, + "description": "Optional. Year of the user's birth", "type": [ "int" ], - "optional": false, - "name": "closing_minute", - "description": "The minute's sequence number in a week, starting on Monday, marking the end of the time interval during which the business is open; 0 - 8 24 60" + "name": "year" + } + ], + "description": "Describes the birthdate of a user.", + "name": "Birthdate" + }, + { + "params": [ + { + "optional": true, + "description": "Optional. Title text of the business intro", + "type": [ + "str" + ], + "name": "title" + }, + { + "optional": true, + "description": "Optional. Message text of the business intro", + "type": [ + "str" + ], + "name": "message" + }, + { + "optional": true, + "description": "Optional. Sticker of the business intro", + "type": [ + "Sticker" + ], + "name": "sticker" } ], - "name": "BusinessOpeningHoursInterval", - "description": "No description available." + "description": "Contains information about the start page settings of a Telegram Business account.", + "name": "BusinessIntro" }, { "params": [ { + "optional": false, + "description": "Address of the business", "type": [ "str" ], + "name": "address" + }, + { + "optional": true, + "description": "Optional. Location of the business", + "type": [ + "Location" + ], + "name": "location" + } + ], + "description": "Contains information about the location of a Telegram Business account.", + "name": "BusinessLocation" + }, + { + "params": [ + { + "optional": false, + "description": "The minute's sequence number in a week, starting on Monday, marking the start of the time interval during which the business is open; 0 - 7 * 24 * 60", + "type": [ + "int" + ], + "name": "opening_minute" + }, + { + "optional": false, + "description": "The minute's sequence number in a week, starting on Monday, marking the end of the time interval during which the business is open; 0 - 8 * 24 * 60", + "type": [ + "int" + ], + "name": "closing_minute" + } + ], + "description": "Describes an interval of time during which a business is open.", + "name": "BusinessOpeningHoursInterval" + }, + { + "params": [ + { "optional": false, - "name": "time_zone_name", - "description": "Unique name of the time zone for which the opening hours are defined" + "description": "Unique name of the time zone for which the opening hours are defined", + "type": [ + "str" + ], + "name": "time_zone_name" }, { + "optional": false, + "description": "List of time intervals describing business opening hours", "type": [ [ "array", @@ -5109,145 +5768,159 @@ ] ] ], - "optional": false, - "name": "opening_hours", - "description": "List of time intervals describing business opening hours" + "name": "opening_hours" } ], - "name": "BusinessOpeningHours", - "description": "No description available." + "description": "Describes the opening hours of a business.", + "name": "BusinessOpeningHours" }, { "params": [ { + "optional": false, + "description": "The location to which the supergroup is connected. Can't be a live location.", "type": [ "Location" ], - "optional": false, - "name": "location", - "description": "The location to which the supergroup is connected. Can't be a live location." + "name": "location" }, { + "optional": false, + "description": "Location address; 1-64 characters, as defined by the chat owner", "type": [ "str" ], - "optional": false, - "name": "address", - "description": "Location address; 1-64 characters, as defined by the chat owner" + "name": "address" } ], - "name": "ChatLocation", - "description": "Represents a location to which a chat is connected." + "description": "Represents a location to which a chat is connected.", + "name": "ChatLocation" }, { "params": [ { + "optional": false, + "description": "Type of the reaction, always “emoji”", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the reaction, always “emoji”" + "name": "type" }, { + "optional": false, + "description": "Reaction emoji. Currently, it can be one of \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\"", "type": [ "str" ], - "optional": false, - "name": "emoji", - "description": "Reaction emoji. Currently, it can be one of \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\"" + "name": "emoji" } ], - "name": "ReactionTypeEmoji", - "description": "The reaction is based on an emoji." + "description": "The reaction is based on an emoji.", + "name": "ReactionTypeEmoji" }, { "params": [ { + "optional": false, + "description": "Type of the reaction, always “custom_emoji”", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the reaction, always “custom_emoji”" + "name": "type" }, { + "optional": false, + "description": "Custom emoji identifier", "type": [ "str" ], + "name": "custom_emoji_id" + } + ], + "description": "The reaction is based on a custom emoji.", + "name": "ReactionTypeCustomEmoji" + }, + { + "params": [ + { "optional": false, - "name": "custom_emoji_id", - "description": "Custom emoji identifier" + "description": "Type of the reaction, always “paid”", + "type": [ + "str" + ], + "name": "type" } ], - "name": "ReactionTypeCustomEmoji", - "description": "The reaction is based on a custom emoji." + "description": "The reaction is paid.", + "name": "ReactionTypePaid" }, { "params": [ { + "optional": false, + "description": "Type of the reaction", "type": [ "ReactionType" ], - "optional": false, - "name": "type", - "description": "Type of the reaction" + "name": "type" }, { + "optional": false, + "description": "Number of times the reaction was added", "type": [ "int" ], - "optional": false, - "name": "total_count", - "description": "Number of times the reaction was added" + "name": "total_count" } ], - "name": "ReactionCount", - "description": "Represents a reaction added to a message along with the number of times it was added." + "description": "Represents a reaction added to a message along with the number of times it was added.", + "name": "ReactionCount" }, { "params": [ { + "optional": false, + "description": "The chat containing the message the user reacted to", "type": [ "Chat" ], - "optional": false, - "name": "chat", - "description": "The chat containing the message the user reacted to" + "name": "chat" }, { + "optional": false, + "description": "Unique identifier of the message inside the chat", "type": [ "int" ], - "optional": false, - "name": "message_id", - "description": "Unique identifier of the message inside the chat" + "name": "message_id" }, { + "optional": true, + "description": "Optional. The user that changed the reaction, if the user isn't anonymous", "type": [ "User" ], - "optional": true, - "name": "user", - "description": "Optional. The user that changed the reaction, if the user isn't anonymous" + "name": "user" }, { + "optional": true, + "description": "Optional. The chat on behalf of which the reaction was changed, if the user is anonymous", "type": [ "Chat" ], - "optional": true, - "name": "actor_chat", - "description": "Optional. The chat on behalf of which the reaction was changed, if the user is anonymous" + "name": "actor_chat" }, { + "optional": false, + "description": "Date of the change in Unix time", "type": [ "int" ], - "optional": false, - "name": "date", - "description": "Date of the change in Unix time" + "name": "date" }, { + "optional": false, + "description": "Previous list of reaction types that were set by the user", "type": [ [ "array", @@ -5256,11 +5929,11 @@ ] ] ], - "optional": false, - "name": "old_reaction", - "description": "Previous list of reaction types that were set by the user" + "name": "old_reaction" }, { + "optional": false, + "description": "New list of reaction types that have been set by the user", "type": [ [ "array", @@ -5269,41 +5942,41 @@ ] ] ], - "optional": false, - "name": "new_reaction", - "description": "New list of reaction types that have been set by the user" + "name": "new_reaction" } ], - "name": "MessageReactionUpdated", - "description": "This object represents a change of a reaction on a message performed by a user." + "description": "This object represents a change of a reaction on a message performed by a user.", + "name": "MessageReactionUpdated" }, { "params": [ { + "optional": false, + "description": "The chat containing the message", "type": [ "Chat" ], - "optional": false, - "name": "chat", - "description": "The chat containing the message" + "name": "chat" }, { + "optional": false, + "description": "Unique message identifier inside the chat", "type": [ "int" ], - "optional": false, - "name": "message_id", - "description": "Unique message identifier inside the chat" + "name": "message_id" }, { + "optional": false, + "description": "Date of the change in Unix time", "type": [ "int" ], - "optional": false, - "name": "date", - "description": "Date of the change in Unix time" + "name": "date" }, { + "optional": false, + "description": "List of reactions that are present on the message", "type": [ [ "array", @@ -5312,490 +5985,498 @@ ] ] ], - "optional": false, - "name": "reactions", - "description": "List of reactions that are present on the message" + "name": "reactions" } ], - "name": "MessageReactionCountUpdated", - "description": "This object represents reaction changes on a message with anonymous reactions." + "description": "This object represents reaction changes on a message with anonymous reactions.", + "name": "MessageReactionCountUpdated" }, { "params": [ { + "optional": false, + "description": "Unique identifier of the forum topic", "type": [ "int" ], - "optional": false, - "name": "message_thread_id", - "description": "Unique identifier of the forum topic" + "name": "message_thread_id" }, { + "optional": false, + "description": "Name of the topic", "type": [ "str" ], - "optional": false, - "name": "name", - "description": "Name of the topic" + "name": "name" }, { + "optional": false, + "description": "Color of the topic icon in RGB format", "type": [ "int" ], - "optional": false, - "name": "icon_color", - "description": "Color of the topic icon in RGB format" + "name": "icon_color" }, { + "optional": true, + "description": "Optional. Unique identifier of the custom emoji shown as the topic icon", "type": [ "str" ], - "optional": true, - "name": "icon_custom_emoji_id", - "description": "Optional. Unique identifier of the custom emoji shown as the topic icon" + "name": "icon_custom_emoji_id" } ], - "name": "ForumTopic", - "description": "This object represents a forum topic." + "description": "This object represents a forum topic.", + "name": "ForumTopic" }, { "params": [ { + "optional": false, + "description": "Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores.", "type": [ "str" ], - "optional": false, - "name": "command", - "description": "Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores." + "name": "command" }, { + "optional": false, + "description": "Description of the command; 1-256 characters.", "type": [ "str" ], - "optional": false, - "name": "description", - "description": "Description of the command; 1-256 characters." + "name": "description" } ], - "name": "BotCommand", - "description": "This object represents a bot command." + "description": "This object represents a bot command.", + "name": "BotCommand" }, { "params": [ { + "optional": false, + "description": "Scope type, must be default", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Scope type, must be default" + "name": "type" } ], - "name": "BotCommandScopeDefault", - "description": "Represents the default scope of bot commands. Default commands are used if no commands with a narrower scope are specified for the user." + "description": "Represents the default scope of bot commands. Default commands are used if no commands with a narrower scope are specified for the user.", + "name": "BotCommandScopeDefault" }, { "params": [ { + "optional": false, + "description": "Scope type, must be all_private_chats", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Scope type, must be all_private_chats" + "name": "type" } ], - "name": "BotCommandScopeAllPrivateChats", - "description": "Represents the scope of bot commands, covering all private chats." + "description": "Represents the scope of bot commands, covering all private chats.", + "name": "BotCommandScopeAllPrivateChats" }, { "params": [ { + "optional": false, + "description": "Scope type, must be all_group_chats", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Scope type, must be all_group_chats" + "name": "type" } ], - "name": "BotCommandScopeAllGroupChats", - "description": "Represents the scope of bot commands, covering all group and supergroup chats." + "description": "Represents the scope of bot commands, covering all group and supergroup chats.", + "name": "BotCommandScopeAllGroupChats" }, { "params": [ { + "optional": false, + "description": "Scope type, must be all_chat_administrators", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Scope type, must be all_chat_administrators" + "name": "type" } ], - "name": "BotCommandScopeAllChatAdministrators", - "description": "Represents the scope of bot commands, covering all group and supergroup chat administrators." + "description": "Represents the scope of bot commands, covering all group and supergroup chat administrators.", + "name": "BotCommandScopeAllChatAdministrators" }, { "params": [ { + "optional": false, + "description": "Scope type, must be chat", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Scope type, must be chat" + "name": "type" }, { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + "name": "chat_id" } ], - "name": "BotCommandScopeChat", - "description": "Represents the scope of bot commands, covering a specific chat." + "description": "Represents the scope of bot commands, covering a specific chat.", + "name": "BotCommandScopeChat" }, { "params": [ { + "optional": false, + "description": "Scope type, must be chat_administrators", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Scope type, must be chat_administrators" + "name": "type" }, { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + "name": "chat_id" } ], - "name": "BotCommandScopeChatAdministrators", - "description": "Represents the scope of bot commands, covering all administrators of a specific group or supergroup chat." + "description": "Represents the scope of bot commands, covering all administrators of a specific group or supergroup chat.", + "name": "BotCommandScopeChatAdministrators" }, { "params": [ { + "optional": false, + "description": "Scope type, must be chat_member", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Scope type, must be chat_member" + "name": "type" }, { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + "name": "chat_id" }, { + "optional": false, + "description": "Unique identifier of the target user", "type": [ "int" ], - "optional": false, - "name": "user_id", - "description": "Unique identifier of the target user" + "name": "user_id" } ], - "name": "BotCommandScopeChatMember", - "description": "Represents the scope of bot commands, covering a specific member of a group or supergroup chat." + "description": "Represents the scope of bot commands, covering a specific member of a group or supergroup chat.", + "name": "BotCommandScopeChatMember" }, { "params": [ { + "optional": false, + "description": "The bot's name", "type": [ "str" ], - "optional": false, - "name": "name", - "description": "The bot's name" + "name": "name" } ], - "name": "BotName", - "description": "This object represents the bot's name." + "description": "This object represents the bot's name.", + "name": "BotName" }, { "params": [ { + "optional": false, + "description": "The bot's description", "type": [ "str" ], - "optional": false, - "name": "description", - "description": "The bot's description" + "name": "description" } ], - "name": "BotDescription", - "description": "This object represents the bot's description." + "description": "This object represents the bot's description.", + "name": "BotDescription" }, { "params": [ { + "optional": false, + "description": "The bot's short description", "type": [ "str" ], - "optional": false, - "name": "short_description", - "description": "The bot's short description" + "name": "short_description" } ], - "name": "BotShortDescription", - "description": "This object represents the bot's short description." + "description": "This object represents the bot's short description.", + "name": "BotShortDescription" }, { "params": [ { + "optional": false, + "description": "Type of the button, must be commands", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the button, must be commands" + "name": "type" } ], - "name": "MenuButtonCommands", - "description": "Represents a menu button, which opens the bot's list of commands." + "description": "Represents a menu button, which opens the bot's list of commands.", + "name": "MenuButtonCommands" }, { "params": [ { + "optional": false, + "description": "Type of the button, must be web_app", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the button, must be web_app" + "name": "type" }, { + "optional": false, + "description": "Text on the button", "type": [ "str" ], - "optional": false, - "name": "text", - "description": "Text on the button" + "name": "text" }, { + "optional": false, + "description": "Description of the Web App that will be launched when the user presses the button. The Web App will be able to send an arbitrary message on behalf of the user using the method answerWebAppQuery. Alternatively, a t.me link to a Web App of the bot can be specified in the object instead of the Web App's URL, in which case the Web App will be opened as if the user pressed the link.", "type": [ "WebAppInfo" ], - "optional": false, - "name": "web_app", - "description": "Description of the Web App that will be launched when the user presses the button. The Web App will be able to send an arbitrary message on behalf of the user using the method answerWebAppQuery." + "name": "web_app" } ], - "name": "MenuButtonWebApp", - "description": "Represents a menu button, which launches a Web App." + "description": "Represents a menu button, which launches a Web App.", + "name": "MenuButtonWebApp" }, { "params": [ { + "optional": false, + "description": "Type of the button, must be default", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the button, must be default" + "name": "type" } ], - "name": "MenuButtonDefault", - "description": "Describes that no specific value for the menu button was set." + "description": "Describes that no specific value for the menu button was set.", + "name": "MenuButtonDefault" }, { "params": [ { + "optional": false, + "description": "Source of the boost, always “premium”", "type": [ "str" ], - "optional": false, - "name": "source", - "description": "Source of the boost, always “premium”" + "name": "source" }, { + "optional": false, + "description": "User that boosted the chat", "type": [ "User" ], - "optional": false, - "name": "user", - "description": "User that boosted the chat" + "name": "user" } ], - "name": "ChatBoostSourcePremium", - "description": "The boost was obtained by subscribing to Telegram Premium or by gifting a Telegram Premium subscription to another user." + "description": "The boost was obtained by subscribing to Telegram Premium or by gifting a Telegram Premium subscription to another user.", + "name": "ChatBoostSourcePremium" }, { "params": [ { + "optional": false, + "description": "Source of the boost, always “gift_code”", "type": [ "str" ], - "optional": false, - "name": "source", - "description": "Source of the boost, always “gift_code”" + "name": "source" }, { + "optional": false, + "description": "User for which the gift code was created", "type": [ "User" ], - "optional": false, - "name": "user", - "description": "User for which the gift code was created" + "name": "user" } ], - "name": "ChatBoostSourceGiftCode", - "description": "The boost was obtained by the creation of Telegram Premium gift codes to boost a chat. Each such code boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription." + "description": "The boost was obtained by the creation of Telegram Premium gift codes to boost a chat. Each such code boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription.", + "name": "ChatBoostSourceGiftCode" }, { "params": [ { + "optional": false, + "description": "Source of the boost, always “giveaway”", "type": [ "str" ], - "optional": false, - "name": "source", - "description": "Source of the boost, always “giveaway”" + "name": "source" }, { + "optional": false, + "description": "Identifier of a message in the chat with the giveaway; the message could have been deleted already. May be 0 if the message isn't sent yet.", "type": [ "int" ], - "optional": false, - "name": "giveaway_message_id", - "description": "Identifier of a message in the chat with the giveaway; the message could have been deleted already. May be 0 if the message isn't sent yet." + "name": "giveaway_message_id" }, { + "optional": true, + "description": "Optional. User that won the prize in the giveaway if any; for Telegram Premium giveaways only", "type": [ "User" ], + "name": "user" + }, + { "optional": true, - "name": "user", - "description": "Optional. User that won the prize in the giveaway if any" + "description": "Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only", + "type": [ + "int" + ], + "name": "prize_star_count" }, { + "optional": true, + "description": "Optional. True, if the giveaway was completed, but there was no user to win the prize", "type": [ "bool" ], - "optional": true, - "name": "is_unclaimed", - "description": "Optional. True, if the giveaway was completed, but there was no user to win the prize" + "name": "is_unclaimed" } ], - "name": "ChatBoostSourceGiveaway", - "description": "The boost was obtained by the creation of a Telegram Premium giveaway. This boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription." + "description": "The boost was obtained by the creation of a Telegram Premium or a Telegram Star giveaway. This boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription for Telegram Premium giveaways and prize_star_count / 500 times for one year for Telegram Star giveaways.", + "name": "ChatBoostSourceGiveaway" }, { "params": [ { + "optional": false, + "description": "Unique identifier of the boost", "type": [ "str" ], - "optional": false, - "name": "boost_id", - "description": "Unique identifier of the boost" + "name": "boost_id" }, { + "optional": false, + "description": "Point in time (Unix timestamp) when the chat was boosted", "type": [ "int" ], - "optional": false, - "name": "add_date", - "description": "Point in time (Unix timestamp) when the chat was boosted" + "name": "add_date" }, { + "optional": false, + "description": "Point in time (Unix timestamp) when the boost will automatically expire, unless the booster's Telegram Premium subscription is prolonged", "type": [ "int" ], - "optional": false, - "name": "expiration_date", - "description": "Point in time (Unix timestamp) when the boost will automatically expire, unless the booster's Telegram Premium subscription is prolonged" + "name": "expiration_date" }, { + "optional": false, + "description": "Source of the added boost", "type": [ "ChatBoostSource" ], - "optional": false, - "name": "source", - "description": "Source of the added boost" + "name": "source" } ], - "name": "ChatBoost", - "description": "This object contains information about a chat boost." + "description": "This object contains information about a chat boost.", + "name": "ChatBoost" }, { "params": [ { + "optional": false, + "description": "Chat which was boosted", "type": [ "Chat" ], - "optional": false, - "name": "chat", - "description": "Chat which was boosted" + "name": "chat" }, { + "optional": false, + "description": "Information about the chat boost", "type": [ "ChatBoost" ], - "optional": false, - "name": "boost", - "description": "Information about the chat boost" + "name": "boost" } ], - "name": "ChatBoostUpdated", - "description": "This object represents a boost added to a chat or changed." + "description": "This object represents a boost added to a chat or changed.", + "name": "ChatBoostUpdated" }, { "params": [ { + "optional": false, + "description": "Chat which was boosted", "type": [ "Chat" ], - "optional": false, - "name": "chat", - "description": "Chat which was boosted" + "name": "chat" }, { + "optional": false, + "description": "Unique identifier of the boost", "type": [ "str" ], - "optional": false, - "name": "boost_id", - "description": "Unique identifier of the boost" + "name": "boost_id" }, { + "optional": false, + "description": "Point in time (Unix timestamp) when the boost was removed", "type": [ "int" ], - "optional": false, - "name": "remove_date", - "description": "Point in time (Unix timestamp) when the boost was removed" + "name": "remove_date" }, { + "optional": false, + "description": "Source of the removed boost", "type": [ "ChatBoostSource" ], - "optional": false, - "name": "source", - "description": "Source of the removed boost" + "name": "source" } ], - "name": "ChatBoostRemoved", - "description": "This object represents a boost removed from a chat." + "description": "This object represents a boost removed from a chat.", + "name": "ChatBoostRemoved" }, { "params": [ { + "optional": false, + "description": "The list of boosts added to the chat by the user", "type": [ [ "array", @@ -5804,87 +6485,87 @@ ] ] ], - "optional": false, - "name": "boosts", - "description": "The list of boosts added to the chat by the user" + "name": "boosts" } ], - "name": "UserChatBoosts", - "description": "This object represents a list of boosts added to a chat by a user." + "description": "This object represents a list of boosts added to a chat by a user.", + "name": "UserChatBoosts" }, { "params": [ { + "optional": false, + "description": "Unique identifier of the business connection", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique identifier of the business connection" + "name": "id" }, { + "optional": false, + "description": "Business account user that created the business connection", "type": [ "User" ], - "optional": false, - "name": "user", - "description": "Business account user that created the business connection" + "name": "user" }, { + "optional": false, + "description": "Identifier of a private chat with the user who created the business connection. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.", "type": [ "int" ], - "optional": false, - "name": "user_chat_id", - "description": "Identifier of a private chat with the user who created the business connection. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier." + "name": "user_chat_id" }, { + "optional": false, + "description": "Date the connection was established in Unix time", "type": [ "int" ], - "optional": false, - "name": "date", - "description": "Date the connection was established in Unix time" + "name": "date" }, { + "optional": false, + "description": "True, if the bot can act on behalf of the business account in chats that were active in the last 24 hours", "type": [ "bool" ], - "optional": false, - "name": "can_reply", - "description": "True, if the bot can act on behalf of the business account in chats that were active in the last 24 hours" + "name": "can_reply" }, { + "optional": false, + "description": "True, if the connection is active", "type": [ "bool" ], - "optional": false, - "name": "is_enabled", - "description": "True, if the connection is active" + "name": "is_enabled" } ], - "name": "BusinessConnection", - "description": "Describes the connection of the bot with a business account." + "description": "Describes the connection of the bot with a business account.", + "name": "BusinessConnection" }, { "params": [ { + "optional": false, + "description": "Unique identifier of the business connection", "type": [ "str" ], - "optional": false, - "name": "business_connection_id", - "description": "Unique identifier of the business connection" + "name": "business_connection_id" }, { + "optional": false, + "description": "Information about a chat in the business account. The bot may not have access to the chat or the corresponding user.", "type": [ "Chat" ], - "optional": false, - "name": "chat", - "description": "Information about a chat in the business account. The bot may not have access to the chat or the corresponding user." + "name": "chat" }, { + "optional": false, + "description": "The list of identifiers of deleted messages in the chat of the business account", "type": [ [ "array", @@ -5893,71 +6574,71 @@ ] ] ], - "optional": false, - "name": "message_ids", - "description": "A JSON-serialized list of identifiers of deleted messages in the chat of the business account" + "name": "message_ids" } ], - "name": "BusinessMessagesDeleted", - "description": "This object is received when messages are deleted from a connected business account." + "description": "This object is received when messages are deleted from a connected business account.", + "name": "BusinessMessagesDeleted" }, { "params": [ { + "optional": true, + "description": "Optional. The group has been migrated to a supergroup with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.", "type": [ "int" ], - "optional": true, - "name": "migrate_to_chat_id", - "description": "Optional. The group has been migrated to a supergroup with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier." + "name": "migrate_to_chat_id" }, { + "optional": true, + "description": "Optional. In case of exceeding flood control, the number of seconds left to wait before the request can be repeated", "type": [ "int" ], - "optional": true, - "name": "retry_after", - "description": "Optional. In case of exceeding flood control, the number of seconds left to wait before the request can be repeated" + "name": "retry_after" } ], - "name": "ResponseParameters", - "description": "Describes why a request was unsuccessful." + "description": "Describes why a request was unsuccessful.", + "name": "ResponseParameters" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be photo", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be photo" + "name": "type" }, { + "optional": false, + "description": "File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://” to upload a new one using multipart/form-data under name. More information on Sending Files »", "type": [ "str" ], - "optional": false, - "name": "media", - "description": "File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://” to upload a new one using multipart/form-data under name. More information on Sending Files »" + "name": "media" }, { + "optional": true, + "description": "Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing" + "name": "caption" }, { + "optional": true, + "description": "Optional. Mode for parsing entities in the photo caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Optional. Mode for parsing entities in the photo caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -5966,66 +6647,74 @@ ] ] ], - "optional": true, - "name": "caption_entities", - "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + "name": "caption_entities" }, { + "optional": true, + "description": "Optional. Pass True, if the caption must be shown above the message media", "type": [ "bool" ], + "name": "show_caption_above_media" + }, + { "optional": true, - "name": "has_spoiler", - "description": "Optional. Pass True if the photo needs to be covered with a spoiler animation" + "description": "Optional. Pass True if the photo needs to be covered with a spoiler animation", + "type": [ + "bool" + ], + "name": "has_spoiler" } ], - "name": "InputMediaPhoto", - "description": "Represents a photo to be sent." + "description": "Represents a photo to be sent.", + "name": "InputMediaPhoto" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be video", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be video" + "name": "type" }, { + "optional": false, + "description": "File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://” to upload a new one using multipart/form-data under name. More information on Sending Files »", "type": [ "str" ], - "optional": false, - "name": "media", - "description": "File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://” to upload a new one using multipart/form-data under name. More information on Sending Files »" + "name": "media" }, { + "optional": true, + "description": "Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »", "type": [ "file", "str" ], - "optional": true, - "name": "thumbnail", - "description": "Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + "name": "thumbnail" }, { + "optional": true, + "description": "Optional. Caption of the video to be sent, 0-1024 characters after entities parsing", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "Optional. Caption of the video to be sent, 0-1024 characters after entities parsing" + "name": "caption" }, { + "optional": true, + "description": "Optional. Mode for parsing entities in the video caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Optional. Mode for parsing entities in the video caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -6034,98 +6723,106 @@ ] ] ], + "name": "caption_entities" + }, + { "optional": true, - "name": "caption_entities", - "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + "description": "Optional. Pass True, if the caption must be shown above the message media", + "type": [ + "bool" + ], + "name": "show_caption_above_media" }, { + "optional": true, + "description": "Optional. Video width", "type": [ "int" ], - "optional": true, - "name": "width", - "description": "Optional. Video width" + "name": "width" }, { + "optional": true, + "description": "Optional. Video height", "type": [ "int" ], - "optional": true, - "name": "height", - "description": "Optional. Video height" + "name": "height" }, { + "optional": true, + "description": "Optional. Video duration in seconds", "type": [ "int" ], - "optional": true, - "name": "duration", - "description": "Optional. Video duration in seconds" + "name": "duration" }, { + "optional": true, + "description": "Optional. Pass True if the uploaded video is suitable for streaming", "type": [ "bool" ], - "optional": true, - "name": "supports_streaming", - "description": "Optional. Pass True if the uploaded video is suitable for streaming" + "name": "supports_streaming" }, { + "optional": true, + "description": "Optional. Pass True if the video needs to be covered with a spoiler animation", "type": [ "bool" ], - "optional": true, - "name": "has_spoiler", - "description": "Optional. Pass True if the video needs to be covered with a spoiler animation" + "name": "has_spoiler" } ], - "name": "InputMediaVideo", - "description": "Represents a video to be sent." + "description": "Represents a video to be sent.", + "name": "InputMediaVideo" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be animation", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be animation" + "name": "type" }, { + "optional": false, + "description": "File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://” to upload a new one using multipart/form-data under name. More information on Sending Files »", "type": [ "str" ], - "optional": false, - "name": "media", - "description": "File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://” to upload a new one using multipart/form-data under name. More information on Sending Files »" + "name": "media" }, { + "optional": true, + "description": "Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »", "type": [ "file", "str" ], - "optional": true, - "name": "thumbnail", - "description": "Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + "name": "thumbnail" }, { + "optional": true, + "description": "Optional. Caption of the animation to be sent, 0-1024 characters after entities parsing", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "Optional. Caption of the animation to be sent, 0-1024 characters after entities parsing" + "name": "caption" }, { + "optional": true, + "description": "Optional. Mode for parsing entities in the animation caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Optional. Mode for parsing entities in the animation caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -6134,90 +6831,98 @@ ] ] ], + "name": "caption_entities" + }, + { "optional": true, - "name": "caption_entities", - "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + "description": "Optional. Pass True, if the caption must be shown above the message media", + "type": [ + "bool" + ], + "name": "show_caption_above_media" }, { + "optional": true, + "description": "Optional. Animation width", "type": [ "int" ], - "optional": true, - "name": "width", - "description": "Optional. Animation width" + "name": "width" }, { + "optional": true, + "description": "Optional. Animation height", "type": [ "int" ], - "optional": true, - "name": "height", - "description": "Optional. Animation height" + "name": "height" }, { + "optional": true, + "description": "Optional. Animation duration in seconds", "type": [ "int" ], - "optional": true, - "name": "duration", - "description": "Optional. Animation duration in seconds" + "name": "duration" }, { + "optional": true, + "description": "Optional. Pass True if the animation needs to be covered with a spoiler animation", "type": [ "bool" ], - "optional": true, - "name": "has_spoiler", - "description": "Optional. Pass True if the animation needs to be covered with a spoiler animation" + "name": "has_spoiler" } ], - "name": "InputMediaAnimation", - "description": "Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent." + "description": "Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.", + "name": "InputMediaAnimation" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be audio", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be audio" + "name": "type" }, { + "optional": false, + "description": "File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://” to upload a new one using multipart/form-data under name. More information on Sending Files »", "type": [ "str" ], - "optional": false, - "name": "media", - "description": "File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://” to upload a new one using multipart/form-data under name. More information on Sending Files »" + "name": "media" }, { + "optional": true, + "description": "Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »", "type": [ "file", "str" ], - "optional": true, - "name": "thumbnail", - "description": "Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + "name": "thumbnail" }, { + "optional": true, + "description": "Optional. Caption of the audio to be sent, 0-1024 characters after entities parsing", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "Optional. Caption of the audio to be sent, 0-1024 characters after entities parsing" + "name": "caption" }, { + "optional": true, + "description": "Optional. Mode for parsing entities in the audio caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Optional. Mode for parsing entities in the audio caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -6226,82 +6931,82 @@ ] ] ], - "optional": true, - "name": "caption_entities", - "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + "name": "caption_entities" }, { + "optional": true, + "description": "Optional. Duration of the audio in seconds", "type": [ "int" ], - "optional": true, - "name": "duration", - "description": "Optional. Duration of the audio in seconds" + "name": "duration" }, { + "optional": true, + "description": "Optional. Performer of the audio", "type": [ "str" ], - "optional": true, - "name": "performer", - "description": "Optional. Performer of the audio" + "name": "performer" }, { + "optional": true, + "description": "Optional. Title of the audio", "type": [ "str" ], - "optional": true, - "name": "title", - "description": "Optional. Title of the audio" + "name": "title" } ], - "name": "InputMediaAudio", - "description": "Represents an audio file to be treated as music to be sent." + "description": "Represents an audio file to be treated as music to be sent.", + "name": "InputMediaAudio" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be document", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be document" + "name": "type" }, { + "optional": false, + "description": "File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://” to upload a new one using multipart/form-data under name. More information on Sending Files »", "type": [ "str" ], - "optional": false, - "name": "media", - "description": "File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://” to upload a new one using multipart/form-data under name. More information on Sending Files »" + "name": "media" }, { + "optional": true, + "description": "Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »", "type": [ "file", "str" ], - "optional": true, - "name": "thumbnail", - "description": "Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + "name": "thumbnail" }, { + "optional": true, + "description": "Optional. Caption of the document to be sent, 0-1024 characters after entities parsing", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "Optional. Caption of the document to be sent, 0-1024 characters after entities parsing" + "name": "caption" }, { + "optional": true, + "description": "Optional. Mode for parsing entities in the document caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Optional. Mode for parsing entities in the document caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -6310,175 +7015,260 @@ ] ] ], - "optional": true, - "name": "caption_entities", - "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + "name": "caption_entities" }, { + "optional": true, + "description": "Optional. Disables automatic server-side content type detection for files uploaded using multipart/form-data. Always True, if the document is sent as part of an album.", "type": [ "bool" ], - "optional": true, - "name": "disable_content_type_detection", - "description": "Optional. Disables automatic server-side content type detection for files uploaded using multipart/form-data. Always True, if the document is sent as part of an album." + "name": "disable_content_type_detection" } ], - "name": "InputMediaDocument", - "description": "Represents a general file to be sent." + "description": "Represents a general file to be sent.", + "name": "InputMediaDocument" }, { "params": [ { + "optional": false, + "description": "Type of the media, must be photo", "type": [ "str" ], - "optional": false, - "name": "file_id", - "description": "Identifier for this file, which can be used to download or reuse the file" + "name": "type" }, { + "optional": false, + "description": "File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://” to upload a new one using multipart/form-data under name. More information on Sending Files »", + "type": [ + "str" + ], + "name": "media" + } + ], + "description": "The paid media to send is a photo.", + "name": "InputPaidMediaPhoto" + }, + { + "params": [ + { + "optional": false, + "description": "Type of the media, must be video", "type": [ "str" ], + "name": "type" + }, + { "optional": false, - "name": "file_unique_id", - "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." + "description": "File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://” to upload a new one using multipart/form-data under name. More information on Sending Files »", + "type": [ + "str" + ], + "name": "media" }, { + "optional": true, + "description": "Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »", "type": [ + "file", "str" ], - "optional": false, - "name": "type", - "description": "Type of the sticker, currently one of “regular”, “mask”, “custom_emoji”. The type of the sticker is independent from its format, which is determined by the fields is_animated and is_video." + "name": "thumbnail" }, { + "optional": true, + "description": "Optional. Video width", "type": [ "int" ], - "optional": false, - "name": "width", - "description": "Sticker width" + "name": "width" }, { + "optional": true, + "description": "Optional. Video height", "type": [ "int" ], - "optional": false, - "name": "height", - "description": "Sticker height" + "name": "height" }, { + "optional": true, + "description": "Optional. Video duration in seconds", "type": [ - "bool" + "int" ], - "optional": false, - "name": "is_animated", - "description": "True, if the sticker is animated" + "name": "duration" }, { + "optional": true, + "description": "Optional. Pass True if the uploaded video is suitable for streaming", "type": [ "bool" ], - "optional": false, - "name": "is_video", - "description": "True, if the sticker is a video sticker" - }, + "name": "supports_streaming" + } + ], + "description": "The paid media to send is a video.", + "name": "InputPaidMediaVideo" + }, + { + "params": [ { + "optional": false, + "description": "Identifier for this file, which can be used to download or reuse the file", "type": [ - "PhotoSize" + "str" ], - "optional": true, - "name": "thumbnail", - "description": "Optional. Sticker thumbnail in the .WEBP or .JPG format" + "name": "file_id" }, { + "optional": false, + "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", "type": [ "str" ], - "optional": true, - "name": "emoji", - "description": "Optional. Emoji associated with the sticker" + "name": "file_unique_id" }, { + "optional": false, + "description": "Type of the sticker, currently one of “regular”, “mask”, “custom_emoji”. The type of the sticker is independent from its format, which is determined by the fields is_animated and is_video.", "type": [ "str" ], - "optional": true, - "name": "set_name", - "description": "Optional. Name of the sticker set to which the sticker belongs" + "name": "type" }, { + "optional": false, + "description": "Sticker width", "type": [ - "File" + "int" ], - "optional": true, - "name": "premium_animation", - "description": "Optional. For premium regular stickers, premium animation for the sticker" + "name": "width" }, { + "optional": false, + "description": "Sticker height", "type": [ - "MaskPosition" + "int" ], - "optional": true, - "name": "mask_position", - "description": "Optional. For mask stickers, the position where the mask should be placed" + "name": "height" }, { + "optional": false, + "description": "True, if the sticker is animated", "type": [ - "str" + "bool" ], - "optional": true, - "name": "custom_emoji_id", - "description": "Optional. For custom emoji stickers, unique identifier of the custom emoji" + "name": "is_animated" }, { + "optional": false, + "description": "True, if the sticker is a video sticker", "type": [ "bool" ], - "optional": true, - "name": "needs_repainting", - "description": "Optional. True, if the sticker must be repainted to a text color in messages, the color of the Telegram Premium badge in emoji status, white color on chat photos, or another appropriate color in other places" + "name": "is_video" }, { - "type": [ - "int" - ], "optional": true, - "name": "file_size", - "description": "Optional. File size in bytes" - } - ], - "name": "Sticker", - "description": "This object represents a sticker." - }, - { - "params": [ - { + "description": "Optional. Sticker thumbnail in the .WEBP or .JPG format", "type": [ - "str" + "PhotoSize" ], - "optional": false, - "name": "name", - "description": "Sticker set name" + "name": "thumbnail" }, { + "optional": true, + "description": "Optional. Emoji associated with the sticker", "type": [ "str" ], - "optional": false, - "name": "title", - "description": "Sticker set title" + "name": "emoji" }, { + "optional": true, + "description": "Optional. Name of the sticker set to which the sticker belongs", "type": [ "str" ], - "optional": false, - "name": "sticker_type", - "description": "Type of stickers in the set, currently one of “regular”, “mask”, “custom_emoji”" + "name": "set_name" }, { + "optional": true, + "description": "Optional. For premium regular stickers, premium animation for the sticker", + "type": [ + "File" + ], + "name": "premium_animation" + }, + { + "optional": true, + "description": "Optional. For mask stickers, the position where the mask should be placed", + "type": [ + "MaskPosition" + ], + "name": "mask_position" + }, + { + "optional": true, + "description": "Optional. For custom emoji stickers, unique identifier of the custom emoji", + "type": [ + "str" + ], + "name": "custom_emoji_id" + }, + { + "optional": true, + "description": "Optional. True, if the sticker must be repainted to a text color in messages, the color of the Telegram Premium badge in emoji status, white color on chat photos, or another appropriate color in other places", + "type": [ + "bool" + ], + "name": "needs_repainting" + }, + { + "optional": true, + "description": "Optional. File size in bytes", + "type": [ + "int" + ], + "name": "file_size" + } + ], + "description": "This object represents a sticker.", + "name": "Sticker" + }, + { + "params": [ + { + "optional": false, + "description": "Sticker set name", + "type": [ + "str" + ], + "name": "name" + }, + { + "optional": false, + "description": "Sticker set title", + "type": [ + "str" + ], + "name": "title" + }, + { + "optional": false, + "description": "Type of stickers in the set, currently one of “regular”, “mask”, “custom_emoji”", + "type": [ + "str" + ], + "name": "sticker_type" + }, + { + "optional": false, + "description": "List of all set stickers", "type": [ [ "array", @@ -6487,80 +7277,80 @@ ] ] ], - "optional": false, - "name": "stickers", - "description": "List of all set stickers" + "name": "stickers" }, { + "optional": true, + "description": "Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format", "type": [ "PhotoSize" ], - "optional": true, - "name": "thumbnail", - "description": "Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format" + "name": "thumbnail" } ], - "name": "StickerSet", - "description": "This object represents a sticker set." + "description": "This object represents a sticker set.", + "name": "StickerSet" }, { "params": [ { + "optional": false, + "description": "The part of the face relative to which the mask should be placed. One of “forehead”, “eyes”, “mouth”, or “chin”.", "type": [ "str" ], - "optional": false, - "name": "point", - "description": "The part of the face relative to which the mask should be placed. One of “forehead”, “eyes”, “mouth”, or “chin”." + "name": "point" }, { + "optional": false, + "description": "Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position.", "type": [ "float" ], - "optional": false, - "name": "x_shift", - "description": "Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position." + "name": "x_shift" }, { + "optional": false, + "description": "Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0 will place the mask just below the default mask position.", "type": [ "float" ], - "optional": false, - "name": "y_shift", - "description": "Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0 will place the mask just below the default mask position." + "name": "y_shift" }, { + "optional": false, + "description": "Mask scaling coefficient. For example, 2.0 means double size.", "type": [ "float" ], - "optional": false, - "name": "scale", - "description": "Mask scaling coefficient. For example, 2.0 means double size." + "name": "scale" } ], - "name": "MaskPosition", - "description": "This object describes the position on faces where a mask should be placed by default." + "description": "This object describes the position on faces where a mask should be placed by default.", + "name": "MaskPosition" }, { "params": [ { + "optional": false, + "description": "The added sticker. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, upload a new one using multipart/form-data, or pass “attach://” to upload a new one using multipart/form-data under name. Animated and video stickers can't be uploaded via HTTP URL. More information on Sending Files »", "type": [ "file", "str" ], - "optional": false, - "name": "sticker", - "description": "The added sticker. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, upload a new one using multipart/form-data, or pass “attach://” to upload a new one using multipart/form-data under name. Animated and video stickers can't be uploaded via HTTP URL. More information on Sending Files »" + "name": "sticker" }, { + "optional": false, + "description": "Format of the added sticker, must be one of “static” for a .WEBP or .PNG image, “animated” for a .TGS animation, “video” for a WEBM video", "type": [ "str" ], - "optional": false, - "name": "format", - "description": "Format of the added sticker, must be one of “static” for a .WEBP or .PNG image, “animated” for a .TGS animation, “video” for a WEBM video" + "name": "format" }, { + "optional": false, + "description": "List of 1-20 emoji associated with the sticker", "type": [ [ "array", @@ -6569,19 +7359,19 @@ ] ] ], - "optional": false, - "name": "emoji_list", - "description": "List of 1-20 emoji associated with the sticker" + "name": "emoji_list" }, { + "optional": true, + "description": "Optional. Position where the mask should be placed on faces. For “mask” stickers only.", "type": [ "MaskPosition" ], - "optional": true, - "name": "mask_position", - "description": "Optional. Position where the mask should be placed on faces. For “mask” stickers only." + "name": "mask_position" }, { + "optional": true, + "description": "Optional. List of 0-20 search keywords for the sticker with total length of up to 64 characters. For “regular” and “custom_emoji” stickers only.", "type": [ [ "array", @@ -6590,275 +7380,340 @@ ] ] ], - "optional": true, - "name": "keywords", - "description": "Optional. List of 0-20 search keywords for the sticker with total length of up to 64 characters. For “regular” and “custom_emoji” stickers only." + "name": "keywords" } ], - "name": "InputSticker", - "description": "This object describes a sticker to be added to a sticker set." + "description": "This object describes a sticker to be added to a sticker set.", + "name": "InputSticker" }, { "params": [ { + "optional": false, + "description": "Unique identifier of the gift", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique identifier for this query" + "name": "id" }, { + "optional": false, + "description": "The sticker that represents the gift", "type": [ - "User" + "Sticker" ], + "name": "sticker" + }, + { "optional": false, - "name": "from", - "description": "Sender" + "description": "The number of Telegram Stars that must be paid to send the sticker", + "type": [ + "int" + ], + "name": "star_count" + }, + { + "optional": true, + "description": "Optional. The total number of the gifts of this type that can be sent; for limited gifts only", + "type": [ + "int" + ], + "name": "total_count" }, { + "optional": true, + "description": "Optional. The number of remaining gifts of this type that can be sent; for limited gifts only", + "type": [ + "int" + ], + "name": "remaining_count" + } + ], + "description": "This object represents a gift that can be sent by the bot.", + "name": "Gift" + }, + { + "params": [ + { + "optional": false, + "description": "The list of gifts", + "type": [ + [ + "array", + [ + "Gift" + ] + ] + ], + "name": "gifts" + } + ], + "description": "This object represent a list of gifts.", + "name": "Gifts" + }, + { + "params": [ + { + "optional": false, + "description": "Unique identifier for this query", "type": [ "str" ], + "name": "id" + }, + { "optional": false, - "name": "query", - "description": "Text of the query (up to 256 characters)" + "description": "Sender", + "type": [ + "User" + ], + "name": "from" }, { + "optional": false, + "description": "Text of the query (up to 256 characters)", "type": [ "str" ], - "optional": false, - "name": "offset", - "description": "Offset of the results to be returned, can be controlled by the bot" + "name": "query" }, { + "optional": false, + "description": "Offset of the results to be returned, can be controlled by the bot", "type": [ "str" ], + "name": "offset" + }, + { "optional": true, - "name": "chat_type", - "description": "Optional. Type of the chat from which the inline query was sent. Can be either “sender” for a private chat with the inline query sender, “private”, “group”, “supergroup”, or “channel”. The chat type should be always known for requests sent from official clients and most third-party clients, unless the request was sent from a secret chat" + "description": "Optional. Type of the chat from which the inline query was sent. Can be either “sender” for a private chat with the inline query sender, “private”, “group”, “supergroup”, or “channel”. The chat type should be always known for requests sent from official clients and most third-party clients, unless the request was sent from a secret chat", + "type": [ + "str" + ], + "name": "chat_type" }, { + "optional": true, + "description": "Optional. Sender location, only for bots that request user location", "type": [ "Location" ], - "optional": true, - "name": "location", - "description": "Optional. Sender location, only for bots that request user location" + "name": "location" } ], - "name": "InlineQuery", - "description": "This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results." + "description": "This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.", + "name": "InlineQuery" }, { "params": [ { + "optional": false, + "description": "Label text on the button", "type": [ "str" ], - "optional": false, - "name": "text", - "description": "Label text on the button" + "name": "text" }, { + "optional": true, + "description": "Optional. Description of the Web App that will be launched when the user presses the button. The Web App will be able to switch back to the inline mode using the method switchInlineQuery inside the Web App.", "type": [ "WebAppInfo" ], - "optional": true, - "name": "web_app", - "description": "Optional. Description of the Web App that will be launched when the user presses the button. The Web App will be able to switch back to the inline mode using the method switchInlineQuery inside the Web App." + "name": "web_app" }, { + "optional": true, + "description": "Optional. Deep-linking parameter for the /start message sent to the bot when a user presses the button. 1-64 characters, only A-Z, a-z, 0-9, _ and - are allowed.\n\nExample: An inline bot that sends YouTube videos can ask the user to connect the bot to their YouTube account to adapt search results accordingly. To do this, it displays a 'Connect your YouTube account' button above the results, or even before showing any. The user presses the button, switches to a private chat with the bot and, in doing so, passes a start parameter that instructs the bot to return an OAuth link. Once done, the bot can offer a switch_inline button so that the user can easily return to the chat where they wanted to use the bot's inline capabilities.", "type": [ "str" ], - "optional": true, - "name": "start_parameter", - "description": "Optional. Deep-linking parameter for the /start message sent to the bot when a user presses the button. 1-64 characters, only A-Z, a-z, 0-9, _ and - are allowed.\n\nExample: An inline bot that sends YouTube videos can ask the user to connect the bot to their YouTube account to adapt search results accordingly. To do this, it displays a 'Connect your YouTube account' button above the results, or even before showing any. The user presses the button, switches to a private chat with the bot and, in doing so, passes a start parameter that instructs the bot to return an OAuth link. Once done, the bot can offer a switch_inline button so that the user can easily return to the chat where they wanted to use the bot's inline capabilities." + "name": "start_parameter" } ], - "name": "InlineQueryResultsButton", - "description": "This object represents a button to be shown above inline query results. You must use exactly one of the optional fields." + "description": "This object represents a button to be shown above inline query results. You must use exactly one of the optional fields.", + "name": "InlineQueryResultsButton" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be article", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be article" + "name": "type" }, { + "optional": false, + "description": "Unique identifier for this result, 1-64 Bytes", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique identifier for this result, 1-64 Bytes" + "name": "id" }, { + "optional": false, + "description": "Title of the result", "type": [ "str" ], - "optional": false, - "name": "title", - "description": "Title of the result" + "name": "title" }, { + "optional": false, + "description": "Content of the message to be sent", "type": [ "InputMessageContent" ], - "optional": false, - "name": "input_message_content", - "description": "Content of the message to be sent" + "name": "input_message_content" }, { + "optional": true, + "description": "Optional. Inline keyboard attached to the message", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "Optional. Inline keyboard attached to the message" + "name": "reply_markup" }, { + "optional": true, + "description": "Optional. URL of the result", "type": [ "str" ], - "optional": true, - "name": "url", - "description": "Optional. URL of the result" + "name": "url" }, { + "optional": true, + "description": "Optional. Pass True if you don't want the URL to be shown in the message", "type": [ "bool" ], - "optional": true, - "name": "hide_url", - "description": "Optional. Pass True if you don't want the URL to be shown in the message" + "name": "hide_url" }, { + "optional": true, + "description": "Optional. Short description of the result", "type": [ "str" ], - "optional": true, - "name": "description", - "description": "Optional. Short description of the result" + "name": "description" }, { + "optional": true, + "description": "Optional. Url of the thumbnail for the result", "type": [ "str" ], - "optional": true, - "name": "thumbnail_url", - "description": "Optional. Url of the thumbnail for the result" + "name": "thumbnail_url" }, { + "optional": true, + "description": "Optional. Thumbnail width", "type": [ "int" ], - "optional": true, - "name": "thumbnail_width", - "description": "Optional. Thumbnail width" + "name": "thumbnail_width" }, { + "optional": true, + "description": "Optional. Thumbnail height", "type": [ "int" ], - "optional": true, - "name": "thumbnail_height", - "description": "Optional. Thumbnail height" + "name": "thumbnail_height" } ], - "name": "InlineQueryResultArticle", - "description": "Represents a link to an article or web page." + "description": "Represents a link to an article or web page.", + "name": "InlineQueryResultArticle" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be photo", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be photo" + "name": "type" }, { + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique identifier for this result, 1-64 bytes" + "name": "id" }, { + "optional": false, + "description": "A valid URL of the photo. Photo must be in JPEG format. Photo size must not exceed 5MB", "type": [ "str" ], - "optional": false, - "name": "photo_url", - "description": "A valid URL of the photo. Photo must be in JPEG format. Photo size must not exceed 5MB" + "name": "photo_url" }, { + "optional": false, + "description": "URL of the thumbnail for the photo", "type": [ "str" ], - "optional": false, - "name": "thumbnail_url", - "description": "URL of the thumbnail for the photo" + "name": "thumbnail_url" }, { + "optional": true, + "description": "Optional. Width of the photo", "type": [ "int" ], - "optional": true, - "name": "photo_width", - "description": "Optional. Width of the photo" + "name": "photo_width" }, { + "optional": true, + "description": "Optional. Height of the photo", "type": [ "int" ], - "optional": true, - "name": "photo_height", - "description": "Optional. Height of the photo" + "name": "photo_height" }, { + "optional": true, + "description": "Optional. Title for the result", "type": [ "str" ], - "optional": true, - "name": "title", - "description": "Optional. Title for the result" + "name": "title" }, { + "optional": true, + "description": "Optional. Short description of the result", "type": [ "str" ], - "optional": true, - "name": "description", - "description": "Optional. Short description of the result" + "name": "description" }, { + "optional": true, + "description": "Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing" + "name": "caption" }, { + "optional": true, + "description": "Optional. Mode for parsing entities in the photo caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Optional. Mode for parsing entities in the photo caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -6867,121 +7722,129 @@ ] ] ], + "name": "caption_entities" + }, + { "optional": true, - "name": "caption_entities", - "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + "description": "Optional. Pass True, if the caption must be shown above the message media", + "type": [ + "bool" + ], + "name": "show_caption_above_media" }, { + "optional": true, + "description": "Optional. Inline keyboard attached to the message", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "Optional. Inline keyboard attached to the message" + "name": "reply_markup" }, { + "optional": true, + "description": "Optional. Content of the message to be sent instead of the photo", "type": [ "InputMessageContent" ], - "optional": true, - "name": "input_message_content", - "description": "Optional. Content of the message to be sent instead of the photo" + "name": "input_message_content" } ], - "name": "InlineQueryResultPhoto", - "description": "Represents a link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo." + "description": "Represents a link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.", + "name": "InlineQueryResultPhoto" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be gif", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be gif" + "name": "type" }, { + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique identifier for this result, 1-64 bytes" + "name": "id" }, { + "optional": false, + "description": "A valid URL for the GIF file. File size must not exceed 1MB", "type": [ "str" ], - "optional": false, - "name": "gif_url", - "description": "A valid URL for the GIF file. File size must not exceed 1MB" + "name": "gif_url" }, { + "optional": true, + "description": "Optional. Width of the GIF", "type": [ "int" ], - "optional": true, - "name": "gif_width", - "description": "Optional. Width of the GIF" + "name": "gif_width" }, { + "optional": true, + "description": "Optional. Height of the GIF", "type": [ "int" ], - "optional": true, - "name": "gif_height", - "description": "Optional. Height of the GIF" + "name": "gif_height" }, { + "optional": true, + "description": "Optional. Duration of the GIF in seconds", "type": [ "int" ], - "optional": true, - "name": "gif_duration", - "description": "Optional. Duration of the GIF in seconds" + "name": "gif_duration" }, { + "optional": false, + "description": "URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result", "type": [ "str" ], - "optional": false, - "name": "thumbnail_url", - "description": "URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result" + "name": "thumbnail_url" }, { + "optional": true, + "description": "Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”", "type": [ "str" ], - "optional": true, - "name": "thumbnail_mime_type", - "description": "Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”" + "name": "thumbnail_mime_type" }, { + "optional": true, + "description": "Optional. Title for the result", "type": [ "str" ], - "optional": true, - "name": "title", - "description": "Optional. Title for the result" + "name": "title" }, { + "optional": true, + "description": "Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing" + "name": "caption" }, { + "optional": true, + "description": "Optional. Mode for parsing entities in the caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Optional. Mode for parsing entities in the caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -6990,121 +7853,129 @@ ] ] ], + "name": "caption_entities" + }, + { "optional": true, - "name": "caption_entities", - "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + "description": "Optional. Pass True, if the caption must be shown above the message media", + "type": [ + "bool" + ], + "name": "show_caption_above_media" }, { + "optional": true, + "description": "Optional. Inline keyboard attached to the message", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "Optional. Inline keyboard attached to the message" + "name": "reply_markup" }, { + "optional": true, + "description": "Optional. Content of the message to be sent instead of the GIF animation", "type": [ "InputMessageContent" ], - "optional": true, - "name": "input_message_content", - "description": "Optional. Content of the message to be sent instead of the GIF animation" + "name": "input_message_content" } ], - "name": "InlineQueryResultGif", - "description": "Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation." + "description": "Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.", + "name": "InlineQueryResultGif" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be mpeg4_gif", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be mpeg4_gif" + "name": "type" }, { + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique identifier for this result, 1-64 bytes" + "name": "id" }, { + "optional": false, + "description": "A valid URL for the MPEG4 file. File size must not exceed 1MB", "type": [ "str" ], - "optional": false, - "name": "mpeg4_url", - "description": "A valid URL for the MPEG4 file. File size must not exceed 1MB" + "name": "mpeg4_url" }, { + "optional": true, + "description": "Optional. Video width", "type": [ "int" ], - "optional": true, - "name": "mpeg4_width", - "description": "Optional. Video width" + "name": "mpeg4_width" }, { + "optional": true, + "description": "Optional. Video height", "type": [ "int" ], - "optional": true, - "name": "mpeg4_height", - "description": "Optional. Video height" + "name": "mpeg4_height" }, { + "optional": true, + "description": "Optional. Video duration in seconds", "type": [ "int" ], - "optional": true, - "name": "mpeg4_duration", - "description": "Optional. Video duration in seconds" + "name": "mpeg4_duration" }, { + "optional": false, + "description": "URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result", "type": [ "str" ], - "optional": false, - "name": "thumbnail_url", - "description": "URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result" + "name": "thumbnail_url" }, { + "optional": true, + "description": "Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”", "type": [ "str" ], - "optional": true, - "name": "thumbnail_mime_type", - "description": "Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”" + "name": "thumbnail_mime_type" }, { + "optional": true, + "description": "Optional. Title for the result", "type": [ "str" ], - "optional": true, - "name": "title", - "description": "Optional. Title for the result" + "name": "title" }, { + "optional": true, + "description": "Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing" + "name": "caption" }, { + "optional": true, + "description": "Optional. Mode for parsing entities in the caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Optional. Mode for parsing entities in the caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -7113,97 +7984,105 @@ ] ] ], + "name": "caption_entities" + }, + { "optional": true, - "name": "caption_entities", - "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + "description": "Optional. Pass True, if the caption must be shown above the message media", + "type": [ + "bool" + ], + "name": "show_caption_above_media" }, { + "optional": true, + "description": "Optional. Inline keyboard attached to the message", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "Optional. Inline keyboard attached to the message" + "name": "reply_markup" }, { + "optional": true, + "description": "Optional. Content of the message to be sent instead of the video animation", "type": [ "InputMessageContent" ], - "optional": true, - "name": "input_message_content", - "description": "Optional. Content of the message to be sent instead of the video animation" + "name": "input_message_content" } ], - "name": "InlineQueryResultMpeg4Gif", - "description": "Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation." + "description": "Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.", + "name": "InlineQueryResultMpeg4Gif" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be video", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be video" + "name": "type" }, { + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique identifier for this result, 1-64 bytes" + "name": "id" }, { + "optional": false, + "description": "A valid URL for the embedded video player or video file", "type": [ "str" ], - "optional": false, - "name": "video_url", - "description": "A valid URL for the embedded video player or video file" + "name": "video_url" }, { + "optional": false, + "description": "MIME type of the content of the video URL, “text/html” or “video/mp4”", "type": [ "str" ], - "optional": false, - "name": "mime_type", - "description": "MIME type of the content of the video URL, “text/html” or “video/mp4”" + "name": "mime_type" }, { + "optional": false, + "description": "URL of the thumbnail (JPEG only) for the video", "type": [ "str" ], - "optional": false, - "name": "thumbnail_url", - "description": "URL of the thumbnail (JPEG only) for the video" + "name": "thumbnail_url" }, { + "optional": false, + "description": "Title for the result", "type": [ "str" ], - "optional": false, - "name": "title", - "description": "Title for the result" + "name": "title" }, { + "optional": true, + "description": "Optional. Caption of the video to be sent, 0-1024 characters after entities parsing", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "Optional. Caption of the video to be sent, 0-1024 characters after entities parsing" + "name": "caption" }, { + "optional": true, + "description": "Optional. Mode for parsing entities in the video caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Optional. Mode for parsing entities in the video caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -7212,113 +8091,121 @@ ] ] ], + "name": "caption_entities" + }, + { "optional": true, - "name": "caption_entities", - "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + "description": "Optional. Pass True, if the caption must be shown above the message media", + "type": [ + "bool" + ], + "name": "show_caption_above_media" }, { + "optional": true, + "description": "Optional. Video width", "type": [ "int" ], - "optional": true, - "name": "video_width", - "description": "Optional. Video width" + "name": "video_width" }, { + "optional": true, + "description": "Optional. Video height", "type": [ "int" ], - "optional": true, - "name": "video_height", - "description": "Optional. Video height" + "name": "video_height" }, { + "optional": true, + "description": "Optional. Video duration in seconds", "type": [ "int" ], - "optional": true, - "name": "video_duration", - "description": "Optional. Video duration in seconds" + "name": "video_duration" }, { + "optional": true, + "description": "Optional. Short description of the result", "type": [ "str" ], - "optional": true, - "name": "description", - "description": "Optional. Short description of the result" + "name": "description" }, { + "optional": true, + "description": "Optional. Inline keyboard attached to the message", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "Optional. Inline keyboard attached to the message" + "name": "reply_markup" }, { + "optional": true, + "description": "Optional. Content of the message to be sent instead of the video. This field is required if InlineQueryResultVideo is used to send an HTML-page as a result (e.g., a YouTube video).", "type": [ "InputMessageContent" ], - "optional": true, - "name": "input_message_content", - "description": "Optional. Content of the message to be sent instead of the video. This field is required if InlineQueryResultVideo is used to send an HTML-page as a result (e.g., a YouTube video)." + "name": "input_message_content" } ], - "name": "InlineQueryResultVideo", - "description": "Represents a link to a page containing an embedded video player or a video file. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video." + "description": "Represents a link to a page containing an embedded video player or a video file. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.", + "name": "InlineQueryResultVideo" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be audio", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be audio" + "name": "type" }, { + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique identifier for this result, 1-64 bytes" + "name": "id" }, { + "optional": false, + "description": "A valid URL for the audio file", "type": [ "str" ], - "optional": false, - "name": "audio_url", - "description": "A valid URL for the audio file" + "name": "audio_url" }, { + "optional": false, + "description": "Title", "type": [ "str" ], - "optional": false, - "name": "title", - "description": "Title" + "name": "title" }, { + "optional": true, + "description": "Optional. Caption, 0-1024 characters after entities parsing", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "Optional. Caption, 0-1024 characters after entities parsing" + "name": "caption" }, { + "optional": true, + "description": "Optional. Mode for parsing entities in the audio caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Optional. Mode for parsing entities in the audio caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -7327,97 +8214,97 @@ ] ] ], - "optional": true, - "name": "caption_entities", - "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + "name": "caption_entities" }, { + "optional": true, + "description": "Optional. Performer", "type": [ "str" ], - "optional": true, - "name": "performer", - "description": "Optional. Performer" + "name": "performer" }, { + "optional": true, + "description": "Optional. Audio duration in seconds", "type": [ "int" ], - "optional": true, - "name": "audio_duration", - "description": "Optional. Audio duration in seconds" + "name": "audio_duration" }, { + "optional": true, + "description": "Optional. Inline keyboard attached to the message", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "Optional. Inline keyboard attached to the message" + "name": "reply_markup" }, { + "optional": true, + "description": "Optional. Content of the message to be sent instead of the audio", "type": [ "InputMessageContent" ], - "optional": true, - "name": "input_message_content", - "description": "Optional. Content of the message to be sent instead of the audio" + "name": "input_message_content" } ], - "name": "InlineQueryResultAudio", - "description": "Represents a link to an MP3 audio file. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio." + "description": "Represents a link to an MP3 audio file. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.", + "name": "InlineQueryResultAudio" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be voice", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be voice" + "name": "type" }, { + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique identifier for this result, 1-64 bytes" + "name": "id" }, { + "optional": false, + "description": "A valid URL for the voice recording", "type": [ "str" ], - "optional": false, - "name": "voice_url", - "description": "A valid URL for the voice recording" + "name": "voice_url" }, { + "optional": false, + "description": "Recording title", "type": [ "str" ], - "optional": false, - "name": "title", - "description": "Recording title" + "name": "title" }, { + "optional": true, + "description": "Optional. Caption, 0-1024 characters after entities parsing", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "Optional. Caption, 0-1024 characters after entities parsing" + "name": "caption" }, { + "optional": true, + "description": "Optional. Mode for parsing entities in the voice message caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Optional. Mode for parsing entities in the voice message caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -7426,81 +8313,81 @@ ] ] ], - "optional": true, - "name": "caption_entities", - "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + "name": "caption_entities" }, { + "optional": true, + "description": "Optional. Recording duration in seconds", "type": [ "int" ], - "optional": true, - "name": "voice_duration", - "description": "Optional. Recording duration in seconds" + "name": "voice_duration" }, { + "optional": true, + "description": "Optional. Inline keyboard attached to the message", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "Optional. Inline keyboard attached to the message" + "name": "reply_markup" }, { + "optional": true, + "description": "Optional. Content of the message to be sent instead of the voice recording", "type": [ "InputMessageContent" ], - "optional": true, - "name": "input_message_content", - "description": "Optional. Content of the message to be sent instead of the voice recording" + "name": "input_message_content" } ], - "name": "InlineQueryResultVoice", - "description": "Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message." + "description": "Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message.", + "name": "InlineQueryResultVoice" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be document", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be document" + "name": "type" }, { + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique identifier for this result, 1-64 bytes" + "name": "id" }, { + "optional": false, + "description": "Title for the result", "type": [ "str" ], - "optional": false, - "name": "title", - "description": "Title for the result" + "name": "title" }, { + "optional": true, + "description": "Optional. Caption of the document to be sent, 0-1024 characters after entities parsing", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "Optional. Caption of the document to be sent, 0-1024 characters after entities parsing" + "name": "caption" }, { + "optional": true, + "description": "Optional. Mode for parsing entities in the document caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Optional. Mode for parsing entities in the document caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -7509,513 +8396,513 @@ ] ] ], - "optional": true, - "name": "caption_entities", - "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + "name": "caption_entities" }, { + "optional": false, + "description": "A valid URL for the file", "type": [ "str" ], - "optional": false, - "name": "document_url", - "description": "A valid URL for the file" + "name": "document_url" }, { + "optional": false, + "description": "MIME type of the content of the file, either “application/pdf” or “application/zip”", "type": [ "str" ], - "optional": false, - "name": "mime_type", - "description": "MIME type of the content of the file, either “application/pdf” or “application/zip”" + "name": "mime_type" }, { + "optional": true, + "description": "Optional. Short description of the result", "type": [ "str" ], - "optional": true, - "name": "description", - "description": "Optional. Short description of the result" + "name": "description" }, { + "optional": true, + "description": "Optional. Inline keyboard attached to the message", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "Optional. Inline keyboard attached to the message" + "name": "reply_markup" }, { + "optional": true, + "description": "Optional. Content of the message to be sent instead of the file", "type": [ "InputMessageContent" ], - "optional": true, - "name": "input_message_content", - "description": "Optional. Content of the message to be sent instead of the file" + "name": "input_message_content" }, { + "optional": true, + "description": "Optional. URL of the thumbnail (JPEG only) for the file", "type": [ "str" ], - "optional": true, - "name": "thumbnail_url", - "description": "Optional. URL of the thumbnail (JPEG only) for the file" + "name": "thumbnail_url" }, { + "optional": true, + "description": "Optional. Thumbnail width", "type": [ "int" ], - "optional": true, - "name": "thumbnail_width", - "description": "Optional. Thumbnail width" + "name": "thumbnail_width" }, { + "optional": true, + "description": "Optional. Thumbnail height", "type": [ "int" ], - "optional": true, - "name": "thumbnail_height", - "description": "Optional. Thumbnail height" + "name": "thumbnail_height" } ], - "name": "InlineQueryResultDocument", - "description": "Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method." + "description": "Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method.", + "name": "InlineQueryResultDocument" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be location", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be location" + "name": "type" }, { + "optional": false, + "description": "Unique identifier for this result, 1-64 Bytes", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique identifier for this result, 1-64 Bytes" + "name": "id" }, { + "optional": false, + "description": "Location latitude in degrees", "type": [ "float" ], - "optional": false, - "name": "latitude", - "description": "Location latitude in degrees" + "name": "latitude" }, { + "optional": false, + "description": "Location longitude in degrees", "type": [ "float" ], - "optional": false, - "name": "longitude", - "description": "Location longitude in degrees" + "name": "longitude" }, { + "optional": false, + "description": "Location title", "type": [ "str" ], - "optional": false, - "name": "title", - "description": "Location title" + "name": "title" }, { + "optional": true, + "description": "Optional. The radius of uncertainty for the location, measured in meters; 0-1500", "type": [ "float" ], - "optional": true, - "name": "horizontal_accuracy", - "description": "Optional. The radius of uncertainty for the location, measured in meters; 0-1500" + "name": "horizontal_accuracy" }, { + "optional": true, + "description": "Optional. Period in seconds during which the location can be updated, should be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely.", "type": [ "int" ], - "optional": true, - "name": "live_period", - "description": "Optional. Period in seconds for which the location can be updated, should be between 60 and 86400." + "name": "live_period" }, { + "optional": true, + "description": "Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.", "type": [ "int" ], - "optional": true, - "name": "heading", - "description": "Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified." + "name": "heading" }, { + "optional": true, + "description": "Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.", "type": [ "int" ], - "optional": true, - "name": "proximity_alert_radius", - "description": "Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified." + "name": "proximity_alert_radius" }, { + "optional": true, + "description": "Optional. Inline keyboard attached to the message", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "Optional. Inline keyboard attached to the message" + "name": "reply_markup" }, { + "optional": true, + "description": "Optional. Content of the message to be sent instead of the location", "type": [ "InputMessageContent" ], - "optional": true, - "name": "input_message_content", - "description": "Optional. Content of the message to be sent instead of the location" + "name": "input_message_content" }, { + "optional": true, + "description": "Optional. Url of the thumbnail for the result", "type": [ "str" ], - "optional": true, - "name": "thumbnail_url", - "description": "Optional. Url of the thumbnail for the result" + "name": "thumbnail_url" }, { + "optional": true, + "description": "Optional. Thumbnail width", "type": [ "int" ], - "optional": true, - "name": "thumbnail_width", - "description": "Optional. Thumbnail width" + "name": "thumbnail_width" }, { + "optional": true, + "description": "Optional. Thumbnail height", "type": [ "int" ], - "optional": true, - "name": "thumbnail_height", - "description": "Optional. Thumbnail height" + "name": "thumbnail_height" } ], - "name": "InlineQueryResultLocation", - "description": "Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location." + "description": "Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location.", + "name": "InlineQueryResultLocation" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be venue", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be venue" + "name": "type" }, { + "optional": false, + "description": "Unique identifier for this result, 1-64 Bytes", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique identifier for this result, 1-64 Bytes" + "name": "id" }, { + "optional": false, + "description": "Latitude of the venue location in degrees", "type": [ "float" ], - "optional": false, - "name": "latitude", - "description": "Latitude of the venue location in degrees" + "name": "latitude" }, { + "optional": false, + "description": "Longitude of the venue location in degrees", "type": [ "float" ], - "optional": false, - "name": "longitude", - "description": "Longitude of the venue location in degrees" + "name": "longitude" }, { + "optional": false, + "description": "Title of the venue", "type": [ "str" ], - "optional": false, - "name": "title", - "description": "Title of the venue" + "name": "title" }, { + "optional": false, + "description": "Address of the venue", "type": [ "str" ], - "optional": false, - "name": "address", - "description": "Address of the venue" + "name": "address" }, { + "optional": true, + "description": "Optional. Foursquare identifier of the venue if known", "type": [ "str" ], - "optional": true, - "name": "foursquare_id", - "description": "Optional. Foursquare identifier of the venue if known" + "name": "foursquare_id" }, { + "optional": true, + "description": "Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)", "type": [ "str" ], - "optional": true, - "name": "foursquare_type", - "description": "Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)" + "name": "foursquare_type" }, { + "optional": true, + "description": "Optional. Google Places identifier of the venue", "type": [ "str" ], - "optional": true, - "name": "google_place_id", - "description": "Optional. Google Places identifier of the venue" + "name": "google_place_id" }, { + "optional": true, + "description": "Optional. Google Places type of the venue. (See supported types.)", "type": [ "str" ], - "optional": true, - "name": "google_place_type", - "description": "Optional. Google Places type of the venue. (See supported types.)" + "name": "google_place_type" }, { + "optional": true, + "description": "Optional. Inline keyboard attached to the message", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "Optional. Inline keyboard attached to the message" + "name": "reply_markup" }, { + "optional": true, + "description": "Optional. Content of the message to be sent instead of the venue", "type": [ "InputMessageContent" ], - "optional": true, - "name": "input_message_content", - "description": "Optional. Content of the message to be sent instead of the venue" + "name": "input_message_content" }, { + "optional": true, + "description": "Optional. Url of the thumbnail for the result", "type": [ "str" ], - "optional": true, - "name": "thumbnail_url", - "description": "Optional. Url of the thumbnail for the result" + "name": "thumbnail_url" }, { + "optional": true, + "description": "Optional. Thumbnail width", "type": [ "int" ], - "optional": true, - "name": "thumbnail_width", - "description": "Optional. Thumbnail width" + "name": "thumbnail_width" }, { + "optional": true, + "description": "Optional. Thumbnail height", "type": [ "int" ], - "optional": true, - "name": "thumbnail_height", - "description": "Optional. Thumbnail height" + "name": "thumbnail_height" } ], - "name": "InlineQueryResultVenue", - "description": "Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the venue." + "description": "Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the venue.", + "name": "InlineQueryResultVenue" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be contact", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be contact" + "name": "type" }, { + "optional": false, + "description": "Unique identifier for this result, 1-64 Bytes", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique identifier for this result, 1-64 Bytes" + "name": "id" }, { + "optional": false, + "description": "Contact's phone number", "type": [ "str" ], - "optional": false, - "name": "phone_number", - "description": "Contact's phone number" + "name": "phone_number" }, { + "optional": false, + "description": "Contact's first name", "type": [ "str" ], - "optional": false, - "name": "first_name", - "description": "Contact's first name" + "name": "first_name" }, { + "optional": true, + "description": "Optional. Contact's last name", "type": [ "str" ], - "optional": true, - "name": "last_name", - "description": "Optional. Contact's last name" + "name": "last_name" }, { + "optional": true, + "description": "Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes", "type": [ "str" ], - "optional": true, - "name": "vcard", - "description": "Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes" + "name": "vcard" }, { + "optional": true, + "description": "Optional. Inline keyboard attached to the message", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "Optional. Inline keyboard attached to the message" + "name": "reply_markup" }, { + "optional": true, + "description": "Optional. Content of the message to be sent instead of the contact", "type": [ "InputMessageContent" ], - "optional": true, - "name": "input_message_content", - "description": "Optional. Content of the message to be sent instead of the contact" + "name": "input_message_content" }, { + "optional": true, + "description": "Optional. Url of the thumbnail for the result", "type": [ "str" ], - "optional": true, - "name": "thumbnail_url", - "description": "Optional. Url of the thumbnail for the result" + "name": "thumbnail_url" }, { + "optional": true, + "description": "Optional. Thumbnail width", "type": [ "int" ], - "optional": true, - "name": "thumbnail_width", - "description": "Optional. Thumbnail width" + "name": "thumbnail_width" }, { + "optional": true, + "description": "Optional. Thumbnail height", "type": [ "int" ], - "optional": true, - "name": "thumbnail_height", - "description": "Optional. Thumbnail height" + "name": "thumbnail_height" } ], - "name": "InlineQueryResultContact", - "description": "Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the contact." + "description": "Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the contact.", + "name": "InlineQueryResultContact" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be game", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be game" + "name": "type" }, { + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique identifier for this result, 1-64 bytes" + "name": "id" }, { + "optional": false, + "description": "Short name of the game", "type": [ "str" ], - "optional": false, - "name": "game_short_name", - "description": "Short name of the game" + "name": "game_short_name" }, { + "optional": true, + "description": "Optional. Inline keyboard attached to the message", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "Optional. Inline keyboard attached to the message" + "name": "reply_markup" } ], - "name": "InlineQueryResultGame", - "description": "Represents a Game." + "description": "Represents a Game.", + "name": "InlineQueryResultGame" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be photo", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be photo" + "name": "type" }, { + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique identifier for this result, 1-64 bytes" + "name": "id" }, { + "optional": false, + "description": "A valid file identifier of the photo", "type": [ "str" ], - "optional": false, - "name": "photo_file_id", - "description": "A valid file identifier of the photo" + "name": "photo_file_id" }, { + "optional": true, + "description": "Optional. Title for the result", "type": [ "str" ], - "optional": true, - "name": "title", - "description": "Optional. Title for the result" + "name": "title" }, { + "optional": true, + "description": "Optional. Short description of the result", "type": [ "str" ], - "optional": true, - "name": "description", - "description": "Optional. Short description of the result" + "name": "description" }, { + "optional": true, + "description": "Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing" + "name": "caption" }, { + "optional": true, + "description": "Optional. Mode for parsing entities in the photo caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Optional. Mode for parsing entities in the photo caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -8024,81 +8911,89 @@ ] ] ], + "name": "caption_entities" + }, + { "optional": true, - "name": "caption_entities", - "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + "description": "Optional. Pass True, if the caption must be shown above the message media", + "type": [ + "bool" + ], + "name": "show_caption_above_media" }, { + "optional": true, + "description": "Optional. Inline keyboard attached to the message", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "Optional. Inline keyboard attached to the message" + "name": "reply_markup" }, { + "optional": true, + "description": "Optional. Content of the message to be sent instead of the photo", "type": [ "InputMessageContent" ], - "optional": true, - "name": "input_message_content", - "description": "Optional. Content of the message to be sent instead of the photo" + "name": "input_message_content" } ], - "name": "InlineQueryResultCachedPhoto", - "description": "Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo." + "description": "Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.", + "name": "InlineQueryResultCachedPhoto" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be gif", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be gif" + "name": "type" }, { + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique identifier for this result, 1-64 bytes" + "name": "id" }, { + "optional": false, + "description": "A valid file identifier for the GIF file", "type": [ "str" ], - "optional": false, - "name": "gif_file_id", - "description": "A valid file identifier for the GIF file" + "name": "gif_file_id" }, { + "optional": true, + "description": "Optional. Title for the result", "type": [ "str" ], - "optional": true, - "name": "title", - "description": "Optional. Title for the result" + "name": "title" }, { + "optional": true, + "description": "Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing" + "name": "caption" }, { + "optional": true, + "description": "Optional. Mode for parsing entities in the caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Optional. Mode for parsing entities in the caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -8107,81 +9002,89 @@ ] ] ], + "name": "caption_entities" + }, + { "optional": true, - "name": "caption_entities", - "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + "description": "Optional. Pass True, if the caption must be shown above the message media", + "type": [ + "bool" + ], + "name": "show_caption_above_media" }, { + "optional": true, + "description": "Optional. Inline keyboard attached to the message", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "Optional. Inline keyboard attached to the message" + "name": "reply_markup" }, { + "optional": true, + "description": "Optional. Content of the message to be sent instead of the GIF animation", "type": [ "InputMessageContent" ], - "optional": true, - "name": "input_message_content", - "description": "Optional. Content of the message to be sent instead of the GIF animation" + "name": "input_message_content" } ], - "name": "InlineQueryResultCachedGif", - "description": "Represents a link to an animated GIF file stored on the Telegram servers. By default, this animated GIF file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with specified content instead of the animation." + "description": "Represents a link to an animated GIF file stored on the Telegram servers. By default, this animated GIF file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with specified content instead of the animation.", + "name": "InlineQueryResultCachedGif" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be mpeg4_gif", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be mpeg4_gif" + "name": "type" }, { + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique identifier for this result, 1-64 bytes" + "name": "id" }, { + "optional": false, + "description": "A valid file identifier for the MPEG4 file", "type": [ "str" ], - "optional": false, - "name": "mpeg4_file_id", - "description": "A valid file identifier for the MPEG4 file" + "name": "mpeg4_file_id" }, { + "optional": true, + "description": "Optional. Title for the result", "type": [ "str" ], - "optional": true, - "name": "title", - "description": "Optional. Title for the result" + "name": "title" }, { + "optional": true, + "description": "Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing" + "name": "caption" }, { + "optional": true, + "description": "Optional. Mode for parsing entities in the caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Optional. Mode for parsing entities in the caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -8190,135 +9093,143 @@ ] ] ], + "name": "caption_entities" + }, + { "optional": true, - "name": "caption_entities", - "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + "description": "Optional. Pass True, if the caption must be shown above the message media", + "type": [ + "bool" + ], + "name": "show_caption_above_media" }, { + "optional": true, + "description": "Optional. Inline keyboard attached to the message", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "Optional. Inline keyboard attached to the message" + "name": "reply_markup" }, { + "optional": true, + "description": "Optional. Content of the message to be sent instead of the video animation", "type": [ "InputMessageContent" ], - "optional": true, - "name": "input_message_content", - "description": "Optional. Content of the message to be sent instead of the video animation" + "name": "input_message_content" } ], - "name": "InlineQueryResultCachedMpeg4Gif", - "description": "Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers. By default, this animated MPEG-4 file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation." + "description": "Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers. By default, this animated MPEG-4 file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.", + "name": "InlineQueryResultCachedMpeg4Gif" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be sticker", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be sticker" + "name": "type" }, { + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique identifier for this result, 1-64 bytes" + "name": "id" }, { + "optional": false, + "description": "A valid file identifier of the sticker", "type": [ "str" ], - "optional": false, - "name": "sticker_file_id", - "description": "A valid file identifier of the sticker" + "name": "sticker_file_id" }, { + "optional": true, + "description": "Optional. Inline keyboard attached to the message", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "Optional. Inline keyboard attached to the message" + "name": "reply_markup" }, { + "optional": true, + "description": "Optional. Content of the message to be sent instead of the sticker", "type": [ "InputMessageContent" ], - "optional": true, - "name": "input_message_content", - "description": "Optional. Content of the message to be sent instead of the sticker" + "name": "input_message_content" } ], - "name": "InlineQueryResultCachedSticker", - "description": "Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the sticker." + "description": "Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the sticker.", + "name": "InlineQueryResultCachedSticker" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be document", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be document" + "name": "type" }, { + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique identifier for this result, 1-64 bytes" + "name": "id" }, { + "optional": false, + "description": "Title for the result", "type": [ "str" ], - "optional": false, - "name": "title", - "description": "Title for the result" + "name": "title" }, { + "optional": false, + "description": "A valid file identifier for the file", "type": [ "str" ], - "optional": false, - "name": "document_file_id", - "description": "A valid file identifier for the file" + "name": "document_file_id" }, { + "optional": true, + "description": "Optional. Short description of the result", "type": [ "str" ], - "optional": true, - "name": "description", - "description": "Optional. Short description of the result" + "name": "description" }, { + "optional": true, + "description": "Optional. Caption of the document to be sent, 0-1024 characters after entities parsing", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "Optional. Caption of the document to be sent, 0-1024 characters after entities parsing" + "name": "caption" }, { + "optional": true, + "description": "Optional. Mode for parsing entities in the document caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Optional. Mode for parsing entities in the document caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -8327,89 +9238,89 @@ ] ] ], - "optional": true, - "name": "caption_entities", - "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + "name": "caption_entities" }, { + "optional": true, + "description": "Optional. Inline keyboard attached to the message", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "Optional. Inline keyboard attached to the message" + "name": "reply_markup" }, { + "optional": true, + "description": "Optional. Content of the message to be sent instead of the file", "type": [ "InputMessageContent" ], - "optional": true, - "name": "input_message_content", - "description": "Optional. Content of the message to be sent instead of the file" + "name": "input_message_content" } ], - "name": "InlineQueryResultCachedDocument", - "description": "Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file." + "description": "Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file.", + "name": "InlineQueryResultCachedDocument" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be video", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be video" + "name": "type" }, { + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique identifier for this result, 1-64 bytes" + "name": "id" }, { + "optional": false, + "description": "A valid file identifier for the video file", "type": [ "str" ], - "optional": false, - "name": "video_file_id", - "description": "A valid file identifier for the video file" + "name": "video_file_id" }, { + "optional": false, + "description": "Title for the result", "type": [ "str" ], - "optional": false, - "name": "title", - "description": "Title for the result" + "name": "title" }, { + "optional": true, + "description": "Optional. Short description of the result", "type": [ "str" ], - "optional": true, - "name": "description", - "description": "Optional. Short description of the result" + "name": "description" }, { + "optional": true, + "description": "Optional. Caption of the video to be sent, 0-1024 characters after entities parsing", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "Optional. Caption of the video to be sent, 0-1024 characters after entities parsing" + "name": "caption" }, { + "optional": true, + "description": "Optional. Mode for parsing entities in the video caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Optional. Mode for parsing entities in the video caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -8418,81 +9329,89 @@ ] ] ], + "name": "caption_entities" + }, + { "optional": true, - "name": "caption_entities", - "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + "description": "Optional. Pass True, if the caption must be shown above the message media", + "type": [ + "bool" + ], + "name": "show_caption_above_media" }, { + "optional": true, + "description": "Optional. Inline keyboard attached to the message", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "Optional. Inline keyboard attached to the message" + "name": "reply_markup" }, { + "optional": true, + "description": "Optional. Content of the message to be sent instead of the video", "type": [ "InputMessageContent" ], - "optional": true, - "name": "input_message_content", - "description": "Optional. Content of the message to be sent instead of the video" + "name": "input_message_content" } ], - "name": "InlineQueryResultCachedVideo", - "description": "Represents a link to a video file stored on the Telegram servers. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video." + "description": "Represents a link to a video file stored on the Telegram servers. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.", + "name": "InlineQueryResultCachedVideo" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be voice", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be voice" + "name": "type" }, { + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique identifier for this result, 1-64 bytes" + "name": "id" }, { + "optional": false, + "description": "A valid file identifier for the voice message", "type": [ "str" ], - "optional": false, - "name": "voice_file_id", - "description": "A valid file identifier for the voice message" + "name": "voice_file_id" }, { + "optional": false, + "description": "Voice message title", "type": [ "str" ], - "optional": false, - "name": "title", - "description": "Voice message title" + "name": "title" }, { + "optional": true, + "description": "Optional. Caption, 0-1024 characters after entities parsing", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "Optional. Caption, 0-1024 characters after entities parsing" + "name": "caption" }, { + "optional": true, + "description": "Optional. Mode for parsing entities in the voice message caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Optional. Mode for parsing entities in the voice message caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -8501,73 +9420,73 @@ ] ] ], - "optional": true, - "name": "caption_entities", - "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + "name": "caption_entities" }, { + "optional": true, + "description": "Optional. Inline keyboard attached to the message", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "Optional. Inline keyboard attached to the message" + "name": "reply_markup" }, { + "optional": true, + "description": "Optional. Content of the message to be sent instead of the voice message", "type": [ "InputMessageContent" ], - "optional": true, - "name": "input_message_content", - "description": "Optional. Content of the message to be sent instead of the voice message" + "name": "input_message_content" } ], - "name": "InlineQueryResultCachedVoice", - "description": "Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message." + "description": "Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message.", + "name": "InlineQueryResultCachedVoice" }, { "params": [ { + "optional": false, + "description": "Type of the result, must be audio", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of the result, must be audio" + "name": "type" }, { + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique identifier for this result, 1-64 bytes" + "name": "id" }, { + "optional": false, + "description": "A valid file identifier for the audio file", "type": [ "str" ], - "optional": false, - "name": "audio_file_id", - "description": "A valid file identifier for the audio file" + "name": "audio_file_id" }, { + "optional": true, + "description": "Optional. Caption, 0-1024 characters after entities parsing", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "Optional. Caption, 0-1024 characters after entities parsing" + "name": "caption" }, { + "optional": true, + "description": "Optional. Mode for parsing entities in the audio caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Optional. Mode for parsing entities in the audio caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -8576,49 +9495,49 @@ ] ] ], - "optional": true, - "name": "caption_entities", - "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + "name": "caption_entities" }, { + "optional": true, + "description": "Optional. Inline keyboard attached to the message", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "Optional. Inline keyboard attached to the message" + "name": "reply_markup" }, { + "optional": true, + "description": "Optional. Content of the message to be sent instead of the audio", "type": [ "InputMessageContent" ], - "optional": true, - "name": "input_message_content", - "description": "Optional. Content of the message to be sent instead of the audio" + "name": "input_message_content" } ], - "name": "InlineQueryResultCachedAudio", - "description": "Represents a link to an MP3 audio file stored on the Telegram servers. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio." + "description": "Represents a link to an MP3 audio file stored on the Telegram servers. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.", + "name": "InlineQueryResultCachedAudio" }, { "params": [ { + "optional": false, + "description": "Text of the message to be sent, 1-4096 characters", "type": [ "str" ], - "optional": false, - "name": "message_text", - "description": "Text of the message to be sent, 1-4096 characters" + "name": "message_text" }, { + "optional": true, + "description": "Optional. Mode for parsing entities in the message text. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Optional. Mode for parsing entities in the message text. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "Optional. List of special entities that appear in message text, which can be specified instead of parse_mode", "type": [ [ "array", @@ -8627,227 +9546,227 @@ ] ] ], - "optional": true, - "name": "entities", - "description": "Optional. List of special entities that appear in message text, which can be specified instead of parse_mode" + "name": "entities" }, { + "optional": true, + "description": "Optional. Link preview generation options for the message", "type": [ "LinkPreviewOptions" ], - "optional": true, - "name": "link_preview_options", - "description": "Optional. Link preview generation options for the message" + "name": "link_preview_options" } ], - "name": "InputTextMessageContent", - "description": "Represents the content of a text message to be sent as the result of an inline query." + "description": "Represents the content of a text message to be sent as the result of an inline query.", + "name": "InputTextMessageContent" }, { "params": [ { + "optional": false, + "description": "Latitude of the location in degrees", "type": [ "float" ], - "optional": false, - "name": "latitude", - "description": "Latitude of the location in degrees" + "name": "latitude" }, { + "optional": false, + "description": "Longitude of the location in degrees", "type": [ "float" ], - "optional": false, - "name": "longitude", - "description": "Longitude of the location in degrees" + "name": "longitude" }, { + "optional": true, + "description": "Optional. The radius of uncertainty for the location, measured in meters; 0-1500", "type": [ "float" ], - "optional": true, - "name": "horizontal_accuracy", - "description": "Optional. The radius of uncertainty for the location, measured in meters; 0-1500" + "name": "horizontal_accuracy" }, { + "optional": true, + "description": "Optional. Period in seconds during which the location can be updated, should be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely.", "type": [ "int" ], - "optional": true, - "name": "live_period", - "description": "Optional. Period in seconds for which the location can be updated, should be between 60 and 86400." + "name": "live_period" }, { + "optional": true, + "description": "Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.", "type": [ "int" ], - "optional": true, - "name": "heading", - "description": "Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified." + "name": "heading" }, { + "optional": true, + "description": "Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.", "type": [ "int" ], - "optional": true, - "name": "proximity_alert_radius", - "description": "Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified." + "name": "proximity_alert_radius" } ], - "name": "InputLocationMessageContent", - "description": "Represents the content of a location message to be sent as the result of an inline query." + "description": "Represents the content of a location message to be sent as the result of an inline query.", + "name": "InputLocationMessageContent" }, { "params": [ { + "optional": false, + "description": "Latitude of the venue in degrees", "type": [ "float" ], - "optional": false, - "name": "latitude", - "description": "Latitude of the venue in degrees" + "name": "latitude" }, { + "optional": false, + "description": "Longitude of the venue in degrees", "type": [ "float" ], - "optional": false, - "name": "longitude", - "description": "Longitude of the venue in degrees" + "name": "longitude" }, { + "optional": false, + "description": "Name of the venue", "type": [ "str" ], - "optional": false, - "name": "title", - "description": "Name of the venue" + "name": "title" }, { + "optional": false, + "description": "Address of the venue", "type": [ "str" ], - "optional": false, - "name": "address", - "description": "Address of the venue" + "name": "address" }, { + "optional": true, + "description": "Optional. Foursquare identifier of the venue, if known", "type": [ "str" ], - "optional": true, - "name": "foursquare_id", - "description": "Optional. Foursquare identifier of the venue, if known" + "name": "foursquare_id" }, { + "optional": true, + "description": "Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)", "type": [ "str" ], - "optional": true, - "name": "foursquare_type", - "description": "Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)" + "name": "foursquare_type" }, { + "optional": true, + "description": "Optional. Google Places identifier of the venue", "type": [ "str" ], - "optional": true, - "name": "google_place_id", - "description": "Optional. Google Places identifier of the venue" + "name": "google_place_id" }, { + "optional": true, + "description": "Optional. Google Places type of the venue. (See supported types.)", "type": [ "str" ], - "optional": true, - "name": "google_place_type", - "description": "Optional. Google Places type of the venue. (See supported types.)" + "name": "google_place_type" } ], - "name": "InputVenueMessageContent", - "description": "Represents the content of a venue message to be sent as the result of an inline query." + "description": "Represents the content of a venue message to be sent as the result of an inline query.", + "name": "InputVenueMessageContent" }, { "params": [ { + "optional": false, + "description": "Contact's phone number", "type": [ "str" ], - "optional": false, - "name": "phone_number", - "description": "Contact's phone number" + "name": "phone_number" }, { + "optional": false, + "description": "Contact's first name", "type": [ "str" ], - "optional": false, - "name": "first_name", - "description": "Contact's first name" + "name": "first_name" }, { + "optional": true, + "description": "Optional. Contact's last name", "type": [ "str" ], - "optional": true, - "name": "last_name", - "description": "Optional. Contact's last name" + "name": "last_name" }, { + "optional": true, + "description": "Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes", "type": [ "str" ], - "optional": true, - "name": "vcard", - "description": "Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes" + "name": "vcard" } ], - "name": "InputContactMessageContent", - "description": "Represents the content of a contact message to be sent as the result of an inline query." + "description": "Represents the content of a contact message to be sent as the result of an inline query.", + "name": "InputContactMessageContent" }, { "params": [ { + "optional": false, + "description": "Product name, 1-32 characters", "type": [ "str" ], - "optional": false, - "name": "title", - "description": "Product name, 1-32 characters" + "name": "title" }, { + "optional": false, + "description": "Product description, 1-255 characters", "type": [ "str" ], - "optional": false, - "name": "description", - "description": "Product description, 1-255 characters" + "name": "description" }, { + "optional": false, + "description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.", "type": [ "str" ], - "optional": false, - "name": "payload", - "description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes." + "name": "payload" }, { + "optional": true, + "description": "Optional. Payment provider token, obtained via @BotFather. Pass an empty string for payments in Telegram Stars.", "type": [ "str" ], - "optional": false, - "name": "provider_token", - "description": "Payment provider token, obtained via @BotFather" + "name": "provider_token" }, { + "optional": false, + "description": "Three-letter ISO 4217 currency code, see more on currencies. Pass “XTR” for payments in Telegram Stars.", "type": [ "str" ], - "optional": false, - "name": "currency", - "description": "Three-letter ISO 4217 currency code, see more on currencies" + "name": "currency" }, { + "optional": false, + "description": "Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must contain exactly one item for payments in Telegram Stars.", "type": [ [ "array", @@ -8856,19 +9775,19 @@ ] ] ], - "optional": false, - "name": "prices", - "description": "Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)" + "name": "prices" }, { + "optional": true, + "description": "Optional. The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). Defaults to 0. Not supported for payments in Telegram Stars.", "type": [ "int" ], - "optional": true, - "name": "max_tip_amount", - "description": "Optional. The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). Defaults to 0" + "name": "max_tip_amount" }, { + "optional": true, + "description": "Optional. A JSON-serialized array of suggested amounts of tip in the smallest units of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount.", "type": [ [ "array", @@ -8877,349 +9796,371 @@ ] ] ], - "optional": true, - "name": "suggested_tip_amounts", - "description": "Optional. A JSON-serialized array of suggested amounts of tip in the smallest units of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount." + "name": "suggested_tip_amounts" }, { + "optional": true, + "description": "Optional. A JSON-serialized object for data about the invoice, which will be shared with the payment provider. A detailed description of the required fields should be provided by the payment provider.", "type": [ "str" ], - "optional": true, - "name": "provider_data", - "description": "Optional. A JSON-serialized object for data about the invoice, which will be shared with the payment provider. A detailed description of the required fields should be provided by the payment provider." + "name": "provider_data" }, { + "optional": true, + "description": "Optional. URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service.", "type": [ "str" ], - "optional": true, - "name": "photo_url", - "description": "Optional. URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service." + "name": "photo_url" }, { + "optional": true, + "description": "Optional. Photo size in bytes", "type": [ "int" ], - "optional": true, - "name": "photo_size", - "description": "Optional. Photo size in bytes" + "name": "photo_size" }, { + "optional": true, + "description": "Optional. Photo width", "type": [ "int" ], - "optional": true, - "name": "photo_width", - "description": "Optional. Photo width" + "name": "photo_width" }, { + "optional": true, + "description": "Optional. Photo height", "type": [ "int" ], - "optional": true, - "name": "photo_height", - "description": "Optional. Photo height" + "name": "photo_height" }, { + "optional": true, + "description": "Optional. Pass True if you require the user's full name to complete the order. Ignored for payments in Telegram Stars.", "type": [ "bool" ], - "optional": true, - "name": "need_name", - "description": "Optional. Pass True if you require the user's full name to complete the order" + "name": "need_name" }, { + "optional": true, + "description": "Optional. Pass True if you require the user's phone number to complete the order. Ignored for payments in Telegram Stars.", "type": [ "bool" ], - "optional": true, - "name": "need_phone_number", - "description": "Optional. Pass True if you require the user's phone number to complete the order" + "name": "need_phone_number" }, { + "optional": true, + "description": "Optional. Pass True if you require the user's email address to complete the order. Ignored for payments in Telegram Stars.", "type": [ "bool" ], - "optional": true, - "name": "need_email", - "description": "Optional. Pass True if you require the user's email address to complete the order" + "name": "need_email" }, { + "optional": true, + "description": "Optional. Pass True if you require the user's shipping address to complete the order. Ignored for payments in Telegram Stars.", "type": [ "bool" ], - "optional": true, - "name": "need_shipping_address", - "description": "Optional. Pass True if you require the user's shipping address to complete the order" + "name": "need_shipping_address" }, { + "optional": true, + "description": "Optional. Pass True if the user's phone number should be sent to the provider. Ignored for payments in Telegram Stars.", "type": [ "bool" ], - "optional": true, - "name": "send_phone_number_to_provider", - "description": "Optional. Pass True if the user's phone number should be sent to provider" + "name": "send_phone_number_to_provider" }, { + "optional": true, + "description": "Optional. Pass True if the user's email address should be sent to the provider. Ignored for payments in Telegram Stars.", "type": [ "bool" ], - "optional": true, - "name": "send_email_to_provider", - "description": "Optional. Pass True if the user's email address should be sent to provider" + "name": "send_email_to_provider" }, { + "optional": true, + "description": "Optional. Pass True if the final price depends on the shipping method. Ignored for payments in Telegram Stars.", "type": [ "bool" ], - "optional": true, - "name": "is_flexible", - "description": "Optional. Pass True if the final price depends on the shipping method" + "name": "is_flexible" } ], - "name": "InputInvoiceMessageContent", - "description": "Represents the content of an invoice message to be sent as the result of an inline query." + "description": "Represents the content of an invoice message to be sent as the result of an inline query.", + "name": "InputInvoiceMessageContent" }, { "params": [ { + "optional": false, + "description": "The unique identifier for the result that was chosen", "type": [ "str" ], - "optional": false, - "name": "result_id", - "description": "The unique identifier for the result that was chosen" + "name": "result_id" }, { + "optional": false, + "description": "The user that chose the result", "type": [ "User" ], - "optional": false, - "name": "from", - "description": "The user that chose the result" + "name": "from" }, { + "optional": true, + "description": "Optional. Sender location, only for bots that require user location", "type": [ "Location" ], - "optional": true, - "name": "location", - "description": "Optional. Sender location, only for bots that require user location" + "name": "location" }, { + "optional": true, + "description": "Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message.", "type": [ "str" ], - "optional": true, - "name": "inline_message_id", - "description": "Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message." + "name": "inline_message_id" }, { + "optional": false, + "description": "The query that was used to obtain the result", "type": [ "str" ], - "optional": false, - "name": "query", - "description": "The query that was used to obtain the result" + "name": "query" } ], - "name": "ChosenInlineResult", - "description": "Represents a result of an inline query that was chosen by the user and sent to their chat partner." + "description": "Represents a result of an inline query that was chosen by the user and sent to their chat partner.", + "name": "ChosenInlineResult" }, { "params": [ { + "optional": true, + "description": "Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message.", "type": [ "str" ], - "optional": true, - "name": "inline_message_id", - "description": "Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message." + "name": "inline_message_id" } ], - "name": "SentWebAppMessage", - "description": "Describes an inline message sent by a Web App on behalf of a user." + "description": "Describes an inline message sent by a Web App on behalf of a user.", + "name": "SentWebAppMessage" }, { "params": [ { + "optional": false, + "description": "Unique identifier of the prepared message", "type": [ "str" ], - "optional": false, - "name": "label", - "description": "Portion label" + "name": "id" }, { + "optional": false, + "description": "Expiration date of the prepared message, in Unix time. Expired prepared messages can no longer be used", "type": [ "int" ], - "optional": false, - "name": "amount", - "description": "Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)." + "name": "expiration_date" } ], - "name": "LabeledPrice", - "description": "This object represents a portion of the price for goods or services." + "description": "Describes an inline message to be sent by a user of a Mini App.", + "name": "PreparedInlineMessage" }, { "params": [ { + "optional": false, + "description": "Portion label", "type": [ "str" ], - "optional": false, - "name": "title", - "description": "Product name" + "name": "label" }, { + "optional": false, + "description": "Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).", "type": [ - "str" + "int" ], + "name": "amount" + } + ], + "description": "This object represents a portion of the price for goods or services.", + "name": "LabeledPrice" + }, + { + "params": [ + { "optional": false, - "name": "description", - "description": "Product description" + "description": "Product name", + "type": [ + "str" + ], + "name": "title" }, { + "optional": false, + "description": "Product description", "type": [ "str" ], - "optional": false, - "name": "start_parameter", - "description": "Unique bot deep-linking parameter that can be used to generate this invoice" + "name": "description" }, { + "optional": false, + "description": "Unique bot deep-linking parameter that can be used to generate this invoice", "type": [ "str" ], + "name": "start_parameter" + }, + { "optional": false, - "name": "currency", - "description": "Three-letter ISO 4217 currency code" + "description": "Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars", + "type": [ + "str" + ], + "name": "currency" }, { + "optional": false, + "description": "Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).", "type": [ "int" ], - "optional": false, - "name": "total_amount", - "description": "Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)." + "name": "total_amount" } ], - "name": "Invoice", - "description": "This object contains basic information about an invoice." + "description": "This object contains basic information about an invoice.", + "name": "Invoice" }, { "params": [ { + "optional": false, + "description": "Two-letter ISO 3166-1 alpha-2 country code", "type": [ "str" ], - "optional": false, - "name": "country_code", - "description": "Two-letter ISO 3166-1 alpha-2 country code" + "name": "country_code" }, { + "optional": false, + "description": "State, if applicable", "type": [ "str" ], - "optional": false, - "name": "state", - "description": "State, if applicable" + "name": "state" }, { + "optional": false, + "description": "City", "type": [ "str" ], - "optional": false, - "name": "city", - "description": "City" + "name": "city" }, { + "optional": false, + "description": "First line for the address", "type": [ "str" ], - "optional": false, - "name": "street_line1", - "description": "First line for the address" + "name": "street_line1" }, { + "optional": false, + "description": "Second line for the address", "type": [ "str" ], - "optional": false, - "name": "street_line2", - "description": "Second line for the address" + "name": "street_line2" }, { + "optional": false, + "description": "Address post code", "type": [ "str" ], - "optional": false, - "name": "post_code", - "description": "Address post code" + "name": "post_code" } ], - "name": "ShippingAddress", - "description": "This object represents a shipping address." + "description": "This object represents a shipping address.", + "name": "ShippingAddress" }, { "params": [ { + "optional": true, + "description": "Optional. User name", "type": [ "str" ], - "optional": true, - "name": "name", - "description": "Optional. User name" + "name": "name" }, { + "optional": true, + "description": "Optional. User's phone number", "type": [ "str" ], - "optional": true, - "name": "phone_number", - "description": "Optional. User's phone number" + "name": "phone_number" }, { + "optional": true, + "description": "Optional. User email", "type": [ "str" ], - "optional": true, - "name": "email", - "description": "Optional. User email" + "name": "email" }, { + "optional": true, + "description": "Optional. User shipping address", "type": [ "ShippingAddress" ], - "optional": true, - "name": "shipping_address", - "description": "Optional. User shipping address" + "name": "shipping_address" } ], - "name": "OrderInfo", - "description": "This object represents information about an order." + "description": "This object represents information about an order.", + "name": "OrderInfo" }, { "params": [ { + "optional": false, + "description": "Shipping option identifier", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Shipping option identifier" + "name": "id" }, { + "optional": false, + "description": "Option title", "type": [ "str" ], - "optional": false, - "name": "title", - "description": "Option title" + "name": "title" }, { + "optional": false, + "description": "List of price portions", "type": [ [ "array", @@ -9228,921 +10169,1019 @@ ] ] ], - "optional": false, - "name": "prices", - "description": "List of price portions" + "name": "prices" } ], - "name": "ShippingOption", - "description": "This object represents one shipping option." + "description": "This object represents one shipping option.", + "name": "ShippingOption" }, { "params": [ { + "optional": false, + "description": "Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars", "type": [ "str" ], - "optional": false, - "name": "currency", - "description": "Three-letter ISO 4217 currency code" + "name": "currency" }, { + "optional": false, + "description": "Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).", "type": [ "int" ], - "optional": false, - "name": "total_amount", - "description": "Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)." + "name": "total_amount" }, { + "optional": false, + "description": "Bot-specified invoice payload", "type": [ "str" ], - "optional": false, - "name": "invoice_payload", - "description": "Bot specified invoice payload" + "name": "invoice_payload" }, { + "optional": true, + "description": "Optional. Expiration date of the subscription, in Unix time; for recurring payments only", "type": [ - "str" + "int" ], - "optional": true, - "name": "shipping_option_id", - "description": "Optional. Identifier of the shipping option chosen by the user" + "name": "subscription_expiration_date" }, { + "optional": true, + "description": "Optional. True, if the payment is a recurring payment for a subscription", "type": [ - "OrderInfo" + "bool" ], - "optional": true, - "name": "order_info", - "description": "Optional. Order information provided by the user" + "name": "is_recurring" }, { + "optional": true, + "description": "Optional. True, if the payment is the first payment for a subscription", "type": [ - "str" + "bool" ], - "optional": false, - "name": "telegram_payment_charge_id", - "description": "Telegram payment identifier" + "name": "is_first_recurring" }, { + "optional": true, + "description": "Optional. Identifier of the shipping option chosen by the user", "type": [ "str" ], + "name": "shipping_option_id" + }, + { + "optional": true, + "description": "Optional. Order information provided by the user", + "type": [ + "OrderInfo" + ], + "name": "order_info" + }, + { "optional": false, - "name": "provider_payment_charge_id", - "description": "Provider payment identifier" + "description": "Telegram payment identifier", + "type": [ + "str" + ], + "name": "telegram_payment_charge_id" + }, + { + "optional": false, + "description": "Provider payment identifier", + "type": [ + "str" + ], + "name": "provider_payment_charge_id" } ], - "name": "SuccessfulPayment", - "description": "This object contains basic information about a successful payment." + "description": "This object contains basic information about a successful payment.", + "name": "SuccessfulPayment" }, { "params": [ { + "optional": false, + "description": "Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars. Currently, always “XTR”", "type": [ "str" ], + "name": "currency" + }, + { "optional": false, - "name": "id", - "description": "Unique query identifier" + "description": "Total refunded price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45, total_amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).", + "type": [ + "int" + ], + "name": "total_amount" }, { + "optional": false, + "description": "Bot-specified invoice payload", "type": [ - "User" + "str" ], + "name": "invoice_payload" + }, + { "optional": false, - "name": "from", - "description": "User who sent the query" + "description": "Telegram payment identifier", + "type": [ + "str" + ], + "name": "telegram_payment_charge_id" }, { + "optional": true, + "description": "Optional. Provider payment identifier", + "type": [ + "str" + ], + "name": "provider_payment_charge_id" + } + ], + "description": "This object contains basic information about a refunded payment.", + "name": "RefundedPayment" + }, + { + "params": [ + { + "optional": false, + "description": "Unique query identifier", "type": [ "str" ], + "name": "id" + }, + { + "optional": false, + "description": "User who sent the query", + "type": [ + "User" + ], + "name": "from" + }, + { "optional": false, - "name": "invoice_payload", - "description": "Bot specified invoice payload" + "description": "Bot-specified invoice payload", + "type": [ + "str" + ], + "name": "invoice_payload" }, { + "optional": false, + "description": "User specified shipping address", "type": [ "ShippingAddress" ], - "optional": false, - "name": "shipping_address", - "description": "User specified shipping address" + "name": "shipping_address" } ], - "name": "ShippingQuery", - "description": "This object contains information about an incoming shipping query." + "description": "This object contains information about an incoming shipping query.", + "name": "ShippingQuery" }, { "params": [ { + "optional": false, + "description": "Unique query identifier", "type": [ "str" ], - "optional": false, - "name": "id", - "description": "Unique query identifier" + "name": "id" }, { + "optional": false, + "description": "User who sent the query", "type": [ "User" ], - "optional": false, - "name": "from", - "description": "User who sent the query" + "name": "from" }, { + "optional": false, + "description": "Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars", "type": [ "str" ], - "optional": false, - "name": "currency", - "description": "Three-letter ISO 4217 currency code" + "name": "currency" }, { + "optional": false, + "description": "Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).", "type": [ "int" ], - "optional": false, - "name": "total_amount", - "description": "Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)." + "name": "total_amount" }, { + "optional": false, + "description": "Bot-specified invoice payload", "type": [ "str" ], - "optional": false, - "name": "invoice_payload", - "description": "Bot specified invoice payload" + "name": "invoice_payload" }, { + "optional": true, + "description": "Optional. Identifier of the shipping option chosen by the user", "type": [ "str" ], - "optional": true, - "name": "shipping_option_id", - "description": "Optional. Identifier of the shipping option chosen by the user" + "name": "shipping_option_id" }, { + "optional": true, + "description": "Optional. Order information provided by the user", "type": [ "OrderInfo" ], - "optional": true, - "name": "order_info", - "description": "Optional. Order information provided by the user" + "name": "order_info" } ], - "name": "PreCheckoutQuery", - "description": "This object contains information about an incoming pre-checkout query." + "description": "This object contains information about an incoming pre-checkout query.", + "name": "PreCheckoutQuery" }, { "params": [ { + "optional": false, + "description": "User who purchased the media", "type": [ - [ - "array", - [ - "EncryptedPassportElement" - ] - ] + "User" ], - "optional": false, - "name": "data", - "description": "Array with information about documents and other Telegram Passport elements that was shared with the bot" + "name": "from" }, { + "optional": false, + "description": "Bot-specified paid media payload", "type": [ - "EncryptedCredentials" + "str" ], - "optional": false, - "name": "credentials", - "description": "Encrypted credentials required to decrypt the data" + "name": "paid_media_payload" } ], - "name": "PassportData", - "description": "Describes Telegram Passport data shared with the bot by the user." + "description": "This object contains information about a paid media purchase.", + "name": "PaidMediaPurchased" }, { "params": [ { + "optional": false, + "description": "Type of the state, always “pending”", "type": [ "str" ], - "optional": false, - "name": "file_id", - "description": "Identifier for this file, which can be used to download or reuse the file" - }, + "name": "type" + } + ], + "description": "The withdrawal is in progress.", + "name": "RevenueWithdrawalStatePending" + }, + { + "params": [ { + "optional": false, + "description": "Type of the state, always “succeeded”", "type": [ "str" ], - "optional": false, - "name": "file_unique_id", - "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." + "name": "type" }, { + "optional": false, + "description": "Date the withdrawal was completed in Unix time", "type": [ "int" ], - "optional": false, - "name": "file_size", - "description": "File size in bytes" + "name": "date" }, { + "optional": false, + "description": "An HTTPS URL that can be used to see transaction details", "type": [ - "int" + "str" ], - "optional": false, - "name": "file_date", - "description": "Unix time when the file was uploaded" + "name": "url" } ], - "name": "PassportFile", - "description": "This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB." + "description": "The withdrawal succeeded.", + "name": "RevenueWithdrawalStateSucceeded" }, { "params": [ { - "type": [ - "str" - ], "optional": false, - "name": "type", - "description": "Element type. One of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”, “phone_number”, “email”." - }, - { + "description": "Type of the state, always “failed”", "type": [ "str" ], - "optional": true, - "name": "data", - "description": "Optional. Base64-encoded encrypted Telegram Passport element data provided by the user; available only for “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport” and “address” types. Can be decrypted and verified using the accompanying EncryptedCredentials." - }, + "name": "type" + } + ], + "description": "The withdrawal failed and the transaction was refunded.", + "name": "RevenueWithdrawalStateFailed" + }, + { + "params": [ { + "optional": false, + "description": "Type of the transaction partner, always “user”", "type": [ "str" ], - "optional": true, - "name": "phone_number", - "description": "Optional. User's verified phone number; available only for “phone_number” type" + "name": "type" }, { + "optional": false, + "description": "Information about the user", "type": [ - "str" + "User" ], - "optional": true, - "name": "email", - "description": "Optional. User's verified email address; available only for “email” type" + "name": "user" }, { - "type": [ - [ - "array", - [ - "PassportFile" - ] - ] - ], "optional": true, - "name": "files", - "description": "Optional. Array of encrypted files with documents provided by the user; available only for “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying EncryptedCredentials." - }, - { + "description": "Optional. Bot-specified invoice payload", "type": [ - "PassportFile" + "str" ], - "optional": true, - "name": "front_side", - "description": "Optional. Encrypted file with the front side of the document, provided by the user; available only for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials." + "name": "invoice_payload" }, { - "type": [ - "PassportFile" - ], "optional": true, - "name": "reverse_side", - "description": "Optional. Encrypted file with the reverse side of the document, provided by the user; available only for “driver_license” and “identity_card”. The file can be decrypted and verified using the accompanying EncryptedCredentials." - }, - { + "description": "Optional. The duration of the paid subscription", "type": [ - "PassportFile" + "int" ], - "optional": true, - "name": "selfie", - "description": "Optional. Encrypted file with the selfie of the user holding a document, provided by the user; available if requested for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials." + "name": "subscription_period" }, { + "optional": true, + "description": "Optional. Information about the paid media bought by the user", "type": [ [ "array", [ - "PassportFile" + "PaidMedia" ] ] ], + "name": "paid_media" + }, + { "optional": true, - "name": "translation", - "description": "Optional. Array of encrypted files with translated versions of documents provided by the user; available if requested for “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying EncryptedCredentials." + "description": "Optional. Bot-specified paid media payload", + "type": [ + "str" + ], + "name": "paid_media_payload" }, { + "optional": true, + "description": "Optional. The gift sent to the user by the bot", "type": [ "str" ], - "optional": false, - "name": "hash", - "description": "Base64-encoded element hash for using in PassportElementErrorUnspecified" + "name": "gift" } ], - "name": "EncryptedPassportElement", - "description": "Describes documents or other Telegram Passport elements shared with the bot by the user." + "description": "Describes a transaction with a user.", + "name": "TransactionPartnerUser" }, { "params": [ { - "type": [ - "str" - ], "optional": false, - "name": "data", - "description": "Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication" - }, - { + "description": "Type of the transaction partner, always “fragment”", "type": [ "str" ], - "optional": false, - "name": "hash", - "description": "Base64-encoded data hash for data authentication" + "name": "type" }, { + "optional": true, + "description": "Optional. State of the transaction if the transaction is outgoing", "type": [ - "str" + "RevenueWithdrawalState" ], - "optional": false, - "name": "secret", - "description": "Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption" + "name": "withdrawal_state" } ], - "name": "EncryptedCredentials", - "description": "Describes data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes." + "description": "Describes a withdrawal transaction with Fragment.", + "name": "TransactionPartnerFragment" }, { "params": [ { - "type": [ - "str" - ], "optional": false, - "name": "source", - "description": "Error source, must be data" - }, - { + "description": "Type of the transaction partner, always “telegram_ads”", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "The section of the user's Telegram Passport which has the error, one of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”" - }, + "name": "type" + } + ], + "description": "Describes a withdrawal transaction to the Telegram Ads platform.", + "name": "TransactionPartnerTelegramAds" + }, + { + "params": [ { + "optional": false, + "description": "Type of the transaction partner, always “telegram_api”", "type": [ "str" ], - "optional": false, - "name": "field_name", - "description": "Name of the data field which has the error" + "name": "type" }, { + "optional": false, + "description": "The number of successful requests that exceeded regular limits and were therefore billed", "type": [ - "str" + "int" ], - "optional": false, - "name": "data_hash", - "description": "Base64-encoded data hash" - }, + "name": "request_count" + } + ], + "description": "Describes a transaction with payment for paid broadcasting.", + "name": "TransactionPartnerTelegramApi" + }, + { + "params": [ { + "optional": false, + "description": "Type of the transaction partner, always “other”", "type": [ "str" ], - "optional": false, - "name": "message", - "description": "Error message" + "name": "type" } ], - "name": "PassportElementErrorDataField", - "description": "Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes." + "description": "Describes a transaction with an unknown source or recipient.", + "name": "TransactionPartnerOther" }, { "params": [ { + "optional": false, + "description": "Unique identifier of the transaction. Coincides with the identifier of the original transaction for refund transactions. Coincides with SuccessfulPayment.telegram_payment_charge_id for successful incoming payments from users.", "type": [ "str" ], - "optional": false, - "name": "source", - "description": "Error source, must be front_side" + "name": "id" }, { + "optional": false, + "description": "Number of Telegram Stars transferred by the transaction", "type": [ - "str" + "int" ], + "name": "amount" + }, + { "optional": false, - "name": "type", - "description": "The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”" + "description": "Date the transaction was created in Unix time", + "type": [ + "int" + ], + "name": "date" }, { + "optional": true, + "description": "Optional. Source of an incoming transaction (e.g., a user purchasing goods or services, Fragment refunding a failed withdrawal). Only for incoming transactions", "type": [ - "str" + "TransactionPartner" ], - "optional": false, - "name": "file_hash", - "description": "Base64-encoded hash of the file with the front side of the document" + "name": "source" }, { + "optional": true, + "description": "Optional. Receiver of an outgoing transaction (e.g., a user for a purchase refund, Fragment for a withdrawal). Only for outgoing transactions", "type": [ - "str" + "TransactionPartner" ], - "optional": false, - "name": "message", - "description": "Error message" + "name": "receiver" } ], - "name": "PassportElementErrorFrontSide", - "description": "Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes." + "description": "Describes a Telegram Star transaction.", + "name": "StarTransaction" }, { "params": [ { - "type": [ - "str" - ], "optional": false, - "name": "source", - "description": "Error source, must be reverse_side" - }, - { + "description": "The list of transactions", "type": [ - "str" + [ + "array", + [ + "StarTransaction" + ] + ] ], - "optional": false, - "name": "type", - "description": "The section of the user's Telegram Passport which has the issue, one of “driver_license”, “identity_card”" - }, + "name": "transactions" + } + ], + "description": "Contains a list of Telegram Star transactions.", + "name": "StarTransactions" + }, + { + "params": [ { + "optional": false, + "description": "Array with information about documents and other Telegram Passport elements that was shared with the bot", "type": [ - "str" + [ + "array", + [ + "EncryptedPassportElement" + ] + ] ], - "optional": false, - "name": "file_hash", - "description": "Base64-encoded hash of the file with the reverse side of the document" + "name": "data" }, { + "optional": false, + "description": "Encrypted credentials required to decrypt the data", "type": [ - "str" + "EncryptedCredentials" ], - "optional": false, - "name": "message", - "description": "Error message" + "name": "credentials" } ], - "name": "PassportElementErrorReverseSide", - "description": "Represents an issue with the reverse side of a document. The error is considered resolved when the file with reverse side of the document changes." + "description": "Describes Telegram Passport data shared with the bot by the user.", + "name": "PassportData" }, { "params": [ { + "optional": false, + "description": "Identifier for this file, which can be used to download or reuse the file", "type": [ "str" ], - "optional": false, - "name": "source", - "description": "Error source, must be selfie" + "name": "file_id" }, { + "optional": false, + "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”" + "name": "file_unique_id" }, { + "optional": false, + "description": "File size in bytes", "type": [ - "str" + "int" ], - "optional": false, - "name": "file_hash", - "description": "Base64-encoded hash of the file with the selfie" + "name": "file_size" }, { + "optional": false, + "description": "Unix time when the file was uploaded", "type": [ - "str" + "int" ], - "optional": false, - "name": "message", - "description": "Error message" + "name": "file_date" } ], - "name": "PassportElementErrorSelfie", - "description": "Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes." + "description": "This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB.", + "name": "PassportFile" }, { "params": [ { + "optional": false, + "description": "Element type. One of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”, “phone_number”, “email”.", "type": [ "str" ], - "optional": false, - "name": "source", - "description": "Error source, must be file" + "name": "type" }, { + "optional": true, + "description": "Optional. Base64-encoded encrypted Telegram Passport element data provided by the user; available only for “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport” and “address” types. Can be decrypted and verified using the accompanying EncryptedCredentials.", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "The section of the user's Telegram Passport which has the issue, one of “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”" + "name": "data" }, { + "optional": true, + "description": "Optional. User's verified phone number; available only for “phone_number” type", "type": [ "str" ], - "optional": false, - "name": "file_hash", - "description": "Base64-encoded file hash" + "name": "phone_number" }, { + "optional": true, + "description": "Optional. User's verified email address; available only for “email” type", "type": [ "str" ], - "optional": false, - "name": "message", - "description": "Error message" - } - ], - "name": "PassportElementErrorFile", - "description": "Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes." - }, - { - "params": [ + "name": "email" + }, { + "optional": true, + "description": "Optional. Array of encrypted files with documents provided by the user; available only for “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying EncryptedCredentials.", "type": [ - "str" + [ + "array", + [ + "PassportFile" + ] + ] ], - "optional": false, - "name": "source", - "description": "Error source, must be files" + "name": "files" }, { + "optional": true, + "description": "Optional. Encrypted file with the front side of the document, provided by the user; available only for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials.", "type": [ - "str" + "PassportFile" ], - "optional": false, - "name": "type", - "description": "The section of the user's Telegram Passport which has the issue, one of “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”" + "name": "front_side" + }, + { + "optional": true, + "description": "Optional. Encrypted file with the reverse side of the document, provided by the user; available only for “driver_license” and “identity_card”. The file can be decrypted and verified using the accompanying EncryptedCredentials.", + "type": [ + "PassportFile" + ], + "name": "reverse_side" + }, + { + "optional": true, + "description": "Optional. Encrypted file with the selfie of the user holding a document, provided by the user; available if requested for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials.", + "type": [ + "PassportFile" + ], + "name": "selfie" }, { + "optional": true, + "description": "Optional. Array of encrypted files with translated versions of documents provided by the user; available if requested for “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying EncryptedCredentials.", "type": [ [ "array", [ - "str" + "PassportFile" ] ] ], - "optional": false, - "name": "file_hashes", - "description": "List of base64-encoded file hashes" + "name": "translation" }, { + "optional": false, + "description": "Base64-encoded element hash for using in PassportElementErrorUnspecified", "type": [ "str" ], - "optional": false, - "name": "message", - "description": "Error message" + "name": "hash" } ], - "name": "PassportElementErrorFiles", - "description": "Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes." + "description": "Describes documents or other Telegram Passport elements shared with the bot by the user.", + "name": "EncryptedPassportElement" }, { "params": [ { - "type": [ - "str" - ], "optional": false, - "name": "source", - "description": "Error source, must be translation_file" - }, - { + "description": "Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of element of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”" + "name": "data" }, { + "optional": false, + "description": "Base64-encoded data hash for data authentication", "type": [ "str" ], - "optional": false, - "name": "file_hash", - "description": "Base64-encoded file hash" + "name": "hash" }, { + "optional": false, + "description": "Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption", "type": [ "str" ], - "optional": false, - "name": "message", - "description": "Error message" + "name": "secret" } ], - "name": "PassportElementErrorTranslationFile", - "description": "Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes." + "description": "Describes data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.", + "name": "EncryptedCredentials" }, { "params": [ { + "optional": false, + "description": "Error source, must be data", "type": [ "str" ], - "optional": false, - "name": "source", - "description": "Error source, must be translation_files" + "name": "source" }, { + "optional": false, + "description": "The section of the user's Telegram Passport which has the error, one of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of element of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”" + "name": "type" }, { + "optional": false, + "description": "Name of the data field which has the error", "type": [ - [ - "array", - [ - "str" - ] - ] + "str" ], - "optional": false, - "name": "file_hashes", - "description": "List of base64-encoded file hashes" + "name": "field_name" }, { + "optional": false, + "description": "Base64-encoded data hash", "type": [ "str" ], + "name": "data_hash" + }, + { "optional": false, - "name": "message", - "description": "Error message" + "description": "Error message", + "type": [ + "str" + ], + "name": "message" } ], - "name": "PassportElementErrorTranslationFiles", - "description": "Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation change." + "description": "Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes.", + "name": "PassportElementErrorDataField" }, { "params": [ { + "optional": false, + "description": "Error source, must be front_side", "type": [ "str" ], - "optional": false, - "name": "source", - "description": "Error source, must be unspecified" + "name": "source" }, { + "optional": false, + "description": "The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”", "type": [ "str" ], - "optional": false, - "name": "type", - "description": "Type of element of the user's Telegram Passport which has the issue" + "name": "type" }, { + "optional": false, + "description": "Base64-encoded hash of the file with the front side of the document", "type": [ "str" ], - "optional": false, - "name": "element_hash", - "description": "Base64-encoded element hash" + "name": "file_hash" }, { + "optional": false, + "description": "Error message", "type": [ "str" ], - "optional": false, - "name": "message", - "description": "Error message" + "name": "message" } ], - "name": "PassportElementErrorUnspecified", - "description": "Represents an issue in an unspecified place. The error is considered resolved when new data is added." + "description": "Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes.", + "name": "PassportElementErrorFrontSide" }, { "params": [ { + "optional": false, + "description": "Error source, must be reverse_side", "type": [ "str" ], - "optional": false, - "name": "title", - "description": "Title of the game" + "name": "source" }, { + "optional": false, + "description": "The section of the user's Telegram Passport which has the issue, one of “driver_license”, “identity_card”", "type": [ "str" ], + "name": "type" + }, + { "optional": false, - "name": "description", - "description": "Description of the game" + "description": "Base64-encoded hash of the file with the reverse side of the document", + "type": [ + "str" + ], + "name": "file_hash" }, { + "optional": false, + "description": "Error message", "type": [ - [ - "array", - [ - "PhotoSize" - ] - ] + "str" ], + "name": "message" + } + ], + "description": "Represents an issue with the reverse side of a document. The error is considered resolved when the file with reverse side of the document changes.", + "name": "PassportElementErrorReverseSide" + }, + { + "params": [ + { "optional": false, - "name": "photo", - "description": "Photo that will be displayed in the game message in chats." + "description": "Error source, must be selfie", + "type": [ + "str" + ], + "name": "source" }, { + "optional": false, + "description": "The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”", "type": [ "str" ], - "optional": true, - "name": "text", - "description": "Optional. Brief description of the game or high scores included in the game message. Can be automatically edited to include current high scores for the game when the bot calls setGameScore, or manually edited using editMessageText. 0-4096 characters." + "name": "type" }, { + "optional": false, + "description": "Base64-encoded hash of the file with the selfie", "type": [ - [ - "array", - [ - "MessageEntity" - ] - ] + "str" ], - "optional": true, - "name": "text_entities", - "description": "Optional. Special entities that appear in text, such as usernames, URLs, bot commands, etc." + "name": "file_hash" }, { + "optional": false, + "description": "Error message", "type": [ - "Animation" + "str" ], - "optional": true, - "name": "animation", - "description": "Optional. Animation that will be displayed in the game message in chats. Upload via BotFather" + "name": "message" } ], - "name": "Game", - "description": "This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers." + "description": "Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes.", + "name": "PassportElementErrorSelfie" }, { "params": [ { + "optional": false, + "description": "Error source, must be file", "type": [ - "int" + "str" ], - "optional": false, - "name": "user_id", - "description": "User identifier" + "name": "source" }, { + "optional": false, + "description": "The section of the user's Telegram Passport which has the issue, one of “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”", "type": [ - "int" + "str" ], - "optional": false, - "name": "score", - "description": "New score, must be non-negative" + "name": "type" }, { + "optional": false, + "description": "Base64-encoded file hash", "type": [ - "bool" + "str" ], - "optional": true, - "name": "force", - "description": "Pass True if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters" + "name": "file_hash" }, { + "optional": false, + "description": "Error message", "type": [ - "bool" + "str" ], - "optional": true, - "name": "disable_edit_message", - "description": "Pass True if the game message should not be automatically edited to include the current scoreboard" + "name": "message" + } + ], + "description": "Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes.", + "name": "PassportElementErrorFile" + }, + { + "params": [ + { + "optional": false, + "description": "Error source, must be files", + "type": [ + "str" + ], + "name": "source" }, { + "optional": false, + "description": "The section of the user's Telegram Passport which has the issue, one of “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”", "type": [ - "int" + "str" ], - "optional": true, - "name": "chat_id", - "description": "Required if inline_message_id is not specified. Unique identifier for the target chat" + "name": "type" }, { + "optional": false, + "description": "List of base64-encoded file hashes", "type": [ - "int" + [ + "array", + [ + "str" + ] + ] ], - "optional": true, - "name": "message_id", - "description": "Required if inline_message_id is not specified. Identifier of the sent message" + "name": "file_hashes" }, { + "optional": false, + "description": "Error message", "type": [ "str" ], - "optional": true, - "name": "inline_message_id", - "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" + "name": "message" } ], - "name": "CallbackGame", - "description": "A placeholder, currently holds no information. Use BotFather to set up your game." + "description": "Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes.", + "name": "PassportElementErrorFiles" }, { "params": [ { + "optional": false, + "description": "Error source, must be translation_file", "type": [ - "int" + "str" ], - "optional": false, - "name": "position", - "description": "Position in high score table for the game" + "name": "source" }, { + "optional": false, + "description": "Type of element of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”", "type": [ - "User" + "str" ], - "optional": false, - "name": "user", - "description": "User" + "name": "type" }, { + "optional": false, + "description": "Base64-encoded file hash", "type": [ - "int" + "str" ], + "name": "file_hash" + }, + { "optional": false, - "name": "score", - "description": "Score" + "description": "Error message", + "type": [ + "str" + ], + "name": "message" } ], - "name": "GameHighScore", - "description": "This object represents one row of the high scores table for a game." - } - ], - "methods": [ + "description": "Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes.", + "name": "PassportElementErrorTranslationFile" + }, { - "type": "get", - "return": [ - [ - "array", - [ - "Update" - ] - ] - ], "params": [ { + "optional": false, + "description": "Error source, must be translation_files", "type": [ - "int" - ], - "optional": true, - "name": "offset", - "description": "Identifier of the first update to be returned. Must be greater by one than the highest among the identifiers of previously received updates. By default, updates starting with the earliest unconfirmed update are returned. An update is considered confirmed as soon as getUpdates is called with an offset higher than its update_id. The negative offset can be specified to retrieve updates starting from -offset update from the end of the updates queue. All previous updates will be forgotten." - }, - { - "type": [ - "int" + "str" ], - "optional": true, - "name": "limit", - "description": "Limits the number of updates to be retrieved. Values between 1-100 are accepted. Defaults to 100." + "name": "source" }, { + "optional": false, + "description": "Type of element of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”", "type": [ - "int" + "str" ], - "optional": true, - "name": "timeout", - "description": "Timeout in seconds for long polling. Defaults to 0, i.e. usual short polling. Should be positive, short polling should be used for testing purposes only." + "name": "type" }, { + "optional": false, + "description": "List of base64-encoded file hashes", "type": [ [ "array", @@ -10151,187 +11190,613 @@ ] ] ], - "optional": true, - "name": "allowed_updates", - "description": "A JSON-serialized list of the update types you want your bot to receive. For example, specify [\"message\", \"edited_channel_post\", \"callback_query\"] to only receive updates of these types. See Update for a complete list of available update types. Specify an empty list to receive all update types except chat_member, message_reaction, and message_reaction_count (default). If not specified, the previous setting will be used.\n\nPlease note that this parameter doesn't affect updates created before the call to the getUpdates, so unwanted updates may be received for a short period of time." + "name": "file_hashes" + }, + { + "optional": false, + "description": "Error message", + "type": [ + "str" + ], + "name": "message" } ], - "name": "getUpdates", - "description": "Use this method to receive incoming updates using long polling (wiki). Returns an Array of Update objects." + "description": "Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation change.", + "name": "PassportElementErrorTranslationFiles" }, { - "type": "post", - "return": [ - "true" - ], "params": [ { + "optional": false, + "description": "Error source, must be unspecified", "type": [ "str" ], + "name": "source" + }, + { "optional": false, - "name": "url", - "description": "HTTPS URL to send updates to. Use an empty string to remove webhook integration" + "description": "Type of element of the user's Telegram Passport which has the issue", + "type": [ + "str" + ], + "name": "type" }, { + "optional": false, + "description": "Base64-encoded element hash", "type": [ - "file" + "str" ], - "optional": true, - "name": "certificate", - "description": "Upload your public key certificate so that the root certificate in use can be checked. See our self-signed guide for details." + "name": "element_hash" }, { + "optional": false, + "description": "Error message", "type": [ "str" ], - "optional": true, - "name": "ip_address", - "description": "The fixed IP address which will be used to send webhook requests instead of the IP address resolved through DNS" + "name": "message" + } + ], + "description": "Represents an issue in an unspecified place. The error is considered resolved when new data is added.", + "name": "PassportElementErrorUnspecified" + }, + { + "params": [ + { + "optional": false, + "description": "Title of the game", + "type": [ + "str" + ], + "name": "title" }, { + "optional": false, + "description": "Description of the game", "type": [ - "int" + "str" ], - "optional": true, - "name": "max_connections", - "description": "The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery, 1-100. Defaults to 40. Use lower values to limit the load on your bot's server, and higher values to increase your bot's throughput." + "name": "description" }, { + "optional": false, + "description": "Photo that will be displayed in the game message in chats.", "type": [ [ "array", [ - "str" + "PhotoSize" ] ] ], - "optional": true, - "name": "allowed_updates", - "description": "A JSON-serialized list of the update types you want your bot to receive. For example, specify [\"message\", \"edited_channel_post\", \"callback_query\"] to only receive updates of these types. See Update for a complete list of available update types. Specify an empty list to receive all update types except chat_member, message_reaction, and message_reaction_count (default). If not specified, the previous setting will be used.\nPlease note that this parameter doesn't affect updates created before the call to the setWebhook, so unwanted updates may be received for a short period of time." + "name": "photo" }, { + "optional": true, + "description": "Optional. Brief description of the game or high scores included in the game message. Can be automatically edited to include current high scores for the game when the bot calls setGameScore, or manually edited using editMessageText. 0-4096 characters.", "type": [ - "bool" + "str" ], - "optional": true, - "name": "drop_pending_updates", - "description": "Pass True to drop all pending updates" + "name": "text" }, { + "optional": true, + "description": "Optional. Special entities that appear in text, such as usernames, URLs, bot commands, etc.", "type": [ - "str" + [ + "array", + [ + "MessageEntity" + ] + ] ], + "name": "text_entities" + }, + { "optional": true, - "name": "secret_token", - "description": "A secret token to be sent in a header “X-Telegram-Bot-Api-Secret-Token” in every webhook request, 1-256 characters. Only characters A-Z, a-z, 0-9, _ and - are allowed. The header is useful to ensure that the request comes from a webhook set by you." + "description": "Optional. Animation that will be displayed in the game message in chats. Upload via BotFather", + "type": [ + "Animation" + ], + "name": "animation" } ], - "name": "setWebhook", - "description": "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." + "description": "This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers.", + "name": "Game" }, { - "type": "post", - "return": [ - "true" - ], "params": [ { + "optional": false, + "description": "User identifier", + "type": [ + "int" + ], + "name": "user_id" + }, + { + "optional": false, + "description": "New score, must be non-negative", + "type": [ + "int" + ], + "name": "score" + }, + { + "optional": true, + "description": "Pass True if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters", + "type": [ + "bool" + ], + "name": "force" + }, + { + "optional": true, + "description": "Pass True if the game message should not be automatically edited to include the current scoreboard", "type": [ "bool" ], + "name": "disable_edit_message" + }, + { + "optional": true, + "description": "Required if inline_message_id is not specified. Unique identifier for the target chat", + "type": [ + "int" + ], + "name": "chat_id" + }, + { + "optional": true, + "description": "Required if inline_message_id is not specified. Identifier of the sent message", + "type": [ + "int" + ], + "name": "message_id" + }, + { "optional": true, - "name": "drop_pending_updates", - "description": "Pass True to drop all pending updates" + "description": "Required if chat_id and message_id are not specified. Identifier of the inline message", + "type": [ + "str" + ], + "name": "inline_message_id" } ], - "name": "deleteWebhook", - "description": "Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success." + "description": "A placeholder, currently holds no information. Use BotFather to set up your game.", + "name": "CallbackGame" + }, + { + "params": [ + { + "optional": false, + "description": "Position in high score table for the game", + "type": [ + "int" + ], + "name": "position" + }, + { + "optional": false, + "description": "User", + "type": [ + "User" + ], + "name": "user" + }, + { + "optional": false, + "description": "Score", + "type": [ + "int" + ], + "name": "score" + } + ], + "description": "This object represents one row of the high scores table for a game.", + "name": "GameHighScore" + } + ], + "generics": [ + { + "subtypes": [ + "Message", + "InaccessibleMessage" + ], + "name": "MaybeInaccessibleMessage" + }, + { + "subtypes": [ + "MessageOriginUser", + "MessageOriginHiddenUser", + "MessageOriginChat", + "MessageOriginChannel" + ], + "name": "MessageOrigin" + }, + { + "subtypes": [ + "PaidMediaPreview", + "PaidMediaPhoto", + "PaidMediaVideo" + ], + "name": "PaidMedia" + }, + { + "subtypes": [ + "BackgroundFillSolid", + "BackgroundFillGradient", + "BackgroundFillFreeformGradient" + ], + "name": "BackgroundFill" + }, + { + "subtypes": [ + "BackgroundTypeFill", + "BackgroundTypeWallpaper", + "BackgroundTypePattern", + "BackgroundTypeChatTheme" + ], + "name": "BackgroundType" + }, + { + "subtypes": [ + "ChatMemberOwner", + "ChatMemberAdministrator", + "ChatMemberMember", + "ChatMemberRestricted", + "ChatMemberLeft", + "ChatMemberBanned" + ], + "name": "ChatMember" + }, + { + "subtypes": [ + "ReactionTypeEmoji", + "ReactionTypeCustomEmoji", + "ReactionTypePaid" + ], + "name": "ReactionType" + }, + { + "subtypes": [ + "BotCommandScopeDefault", + "BotCommandScopeAllPrivateChats", + "BotCommandScopeAllGroupChats", + "BotCommandScopeAllChatAdministrators", + "BotCommandScopeChat", + "BotCommandScopeChatAdministrators", + "BotCommandScopeChatMember" + ], + "name": "BotCommandScope" + }, + { + "subtypes": [ + "MenuButtonCommands", + "MenuButtonWebApp", + "MenuButtonDefault" + ], + "name": "MenuButton" + }, + { + "subtypes": [ + "ChatBoostSourcePremium", + "ChatBoostSourceGiftCode", + "ChatBoostSourceGiveaway" + ], + "name": "ChatBoostSource" + }, + { + "subtypes": [ + "InputMediaAnimation", + "InputMediaDocument", + "InputMediaAudio", + "InputMediaPhoto", + "InputMediaVideo" + ], + "name": "InputMedia" + }, + { + "subtypes": [ + "InputPaidMediaPhoto", + "InputPaidMediaVideo" + ], + "name": "InputPaidMedia" + }, + { + "subtypes": [ + "InlineQueryResultCachedAudio", + "InlineQueryResultCachedDocument", + "InlineQueryResultCachedGif", + "InlineQueryResultCachedMpeg4Gif", + "InlineQueryResultCachedPhoto", + "InlineQueryResultCachedSticker", + "InlineQueryResultCachedVideo", + "InlineQueryResultCachedVoice", + "InlineQueryResultArticle", + "InlineQueryResultAudio", + "InlineQueryResultContact", + "InlineQueryResultGame", + "InlineQueryResultDocument", + "InlineQueryResultGif", + "InlineQueryResultLocation", + "InlineQueryResultMpeg4Gif", + "InlineQueryResultPhoto", + "InlineQueryResultVenue", + "InlineQueryResultVideo", + "InlineQueryResultVoice" + ], + "name": "InlineQueryResult" + }, + { + "subtypes": [ + "InputTextMessageContent", + "InputLocationMessageContent", + "InputVenueMessageContent", + "InputContactMessageContent", + "InputInvoiceMessageContent" + ], + "name": "InputMessageContent" + }, + { + "subtypes": [ + "RevenueWithdrawalStatePending", + "RevenueWithdrawalStateSucceeded", + "RevenueWithdrawalStateFailed" + ], + "name": "RevenueWithdrawalState" + }, + { + "subtypes": [ + "TransactionPartnerUser", + "TransactionPartnerFragment", + "TransactionPartnerTelegramAds", + "TransactionPartnerTelegramApi", + "TransactionPartnerOther" + ], + "name": "TransactionPartner" }, { + "subtypes": [ + "PassportElementErrorDataField", + "PassportElementErrorFrontSide", + "PassportElementErrorReverseSide", + "PassportElementErrorSelfie", + "PassportElementErrorFile", + "PassportElementErrorFiles", + "PassportElementErrorTranslationFile", + "PassportElementErrorTranslationFiles", + "PassportElementErrorUnspecified" + ], + "name": "PassportElementError" + } + ], + "methods": [ + { + "params": [ + { + "optional": true, + "description": "Identifier of the first update to be returned. Must be greater by one than the highest among the identifiers of previously received updates. By default, updates starting with the earliest unconfirmed update are returned. An update is considered confirmed as soon as getUpdates is called with an offset higher than its update_id. The negative offset can be specified to retrieve updates starting from -offset update from the end of the updates queue. All previous updates will be forgotten.", + "type": [ + "int" + ], + "name": "offset" + }, + { + "optional": true, + "description": "Limits the number of updates to be retrieved. Values between 1-100 are accepted. Defaults to 100.", + "type": [ + "int" + ], + "name": "limit" + }, + { + "optional": true, + "description": "Timeout in seconds for long polling. Defaults to 0, i.e. usual short polling. Should be positive, short polling should be used for testing purposes only.", + "type": [ + "int" + ], + "name": "timeout" + }, + { + "optional": true, + "description": "A JSON-serialized list of the update types you want your bot to receive. For example, specify [\"message\", \"edited_channel_post\", \"callback_query\"] to only receive updates of these types. See Update for a complete list of available update types. Specify an empty list to receive all update types except chat_member, message_reaction, and message_reaction_count (default). If not specified, the previous setting will be used.\n\nPlease note that this parameter doesn't affect updates created before the call to the getUpdates, so unwanted updates may be received for a short period of time.", + "type": [ + [ + "array", + [ + "str" + ] + ] + ], + "name": "allowed_updates" + } + ], + "description": "Use this method to receive incoming updates using long polling (wiki). Returns an Array of Update objects.", "type": "get", + "name": "getUpdates", "return": [ - "WebhookInfo" + [ + "array", + [ + "Update" + ] + ] + ] + }, + { + "params": [ + { + "optional": false, + "description": "HTTPS URL to send updates to. Use an empty string to remove webhook integration", + "type": [ + "str" + ], + "name": "url" + }, + { + "optional": true, + "description": "Upload your public key certificate so that the root certificate in use can be checked. See our self-signed guide for details.", + "type": [ + "file" + ], + "name": "certificate" + }, + { + "optional": true, + "description": "The fixed IP address which will be used to send webhook requests instead of the IP address resolved through DNS", + "type": [ + "str" + ], + "name": "ip_address" + }, + { + "optional": true, + "description": "The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery, 1-100. Defaults to 40. Use lower values to limit the load on your bot's server, and higher values to increase your bot's throughput.", + "type": [ + "int" + ], + "name": "max_connections" + }, + { + "optional": true, + "description": "A JSON-serialized list of the update types you want your bot to receive. For example, specify [\"message\", \"edited_channel_post\", \"callback_query\"] to only receive updates of these types. See Update for a complete list of available update types. Specify an empty list to receive all update types except chat_member, message_reaction, and message_reaction_count (default). If not specified, the previous setting will be used.\nPlease note that this parameter doesn't affect updates created before the call to the setWebhook, so unwanted updates may be received for a short period of time.", + "type": [ + [ + "array", + [ + "str" + ] + ] + ], + "name": "allowed_updates" + }, + { + "optional": true, + "description": "Pass True to drop all pending updates", + "type": [ + "bool" + ], + "name": "drop_pending_updates" + }, + { + "optional": true, + "description": "A secret token to be sent in a header “X-Telegram-Bot-Api-Secret-Token” in every webhook request, 1-256 characters. Only characters A-Z, a-z, 0-9, _ and - are allowed. The header is useful to ensure that the request comes from a webhook set by you.", + "type": [ + "str" + ], + "name": "secret_token" + } + ], + "description": "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.", + "type": "post", + "name": "setWebhook", + "return": [ + "true" + ] + }, + { + "params": [ + { + "optional": true, + "description": "Pass True to drop all pending updates", + "type": [ + "bool" + ], + "name": "drop_pending_updates" + } ], + "description": "Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success.", + "type": "post", + "name": "deleteWebhook", + "return": [ + "true" + ] + }, + { "params": [], + "description": "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.", + "type": "get", "name": "getWebhookInfo", - "description": "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." + "return": [ + "WebhookInfo" + ] }, { + "params": [], + "description": "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.", "type": "get", + "name": "getMe", "return": [ "User" - ], - "params": [], - "name": "getMe", - "description": "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." + ] }, { + "params": [], + "description": "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.", "type": "post", + "name": "logOut", "return": [ "true" - ], - "params": [], - "name": "logOut", - "description": "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." + ] }, { + "params": [], + "description": "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.", "type": "post", + "name": "close", "return": [ "true" - ], - "params": [], - "name": "close", - "description": "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." + ] }, { - "type": "post", - "return": [ - "Message" - ], "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message will be sent", "type": [ "str" ], - "optional": true, - "name": "business_connection_id", - "description": "Unique identifier of the business connection on behalf of which the message will be sent" + "name": "business_connection_id" }, { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": true, + "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only", "type": [ "int" ], - "optional": true, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only" + "name": "message_thread_id" }, { + "optional": false, + "description": "Text of the message to be sent, 1-4096 characters after entities parsing", "type": [ "str" ], - "optional": false, - "name": "text", - "description": "Text of the message to be sent, 1-4096 characters after entities parsing" + "name": "text" }, { + "optional": true, + "description": "Mode for parsing entities in the message text. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Mode for parsing entities in the message text. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode", "type": [ [ "array", @@ -10340,150 +11805,166 @@ ] ] ], - "optional": true, - "name": "entities", - "description": "A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode" + "name": "entities" }, { + "optional": true, + "description": "Link preview generation options for the message", "type": [ "LinkPreviewOptions" ], - "optional": true, - "name": "link_preview_options", - "description": "Link preview generation options for the message" + "name": "link_preview_options" }, { + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound.", "type": [ "bool" ], + "name": "disable_notification" + }, + { "optional": true, - "name": "disable_notification", - "description": "Sends the message silently. Users will receive a notification with no sound." + "description": "Protects the contents of the sent message from forwarding and saving", + "type": [ + "bool" + ], + "name": "protect_content" }, { + "optional": true, + "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance", "type": [ "bool" ], + "name": "allow_paid_broadcast" + }, + { "optional": true, - "name": "protect_content", - "description": "Protects the contents of the sent message from forwarding and saving" + "description": "Unique identifier of the message effect to be added to the message; for private chats only", + "type": [ + "str" + ], + "name": "message_effect_id" }, { + "optional": true, + "description": "Description of the message to reply to", "type": [ "ReplyParameters" ], - "optional": true, - "name": "reply_parameters", - "description": "Description of the message to reply to" + "name": "reply_parameters" }, { + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user", "type": [ "InlineKeyboardMarkup", "ReplyKeyboardMarkup", "ReplyKeyboardRemove", "ForceReply" ], - "optional": true, - "name": "reply_markup", - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account" + "name": "reply_markup" } ], - "name": "sendMessage", - "description": "Use this method to send text messages. On success, the sent Message is returned." - }, - { + "description": "Use this method to send text messages. On success, the sent Message is returned.", "type": "post", + "name": "sendMessage", "return": [ "Message" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": true, + "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only", "type": [ "int" ], - "optional": true, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only" + "name": "message_thread_id" }, { + "optional": false, + "description": "Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "from_chat_id", - "description": "Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)" + "name": "from_chat_id" }, { + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound.", "type": [ "bool" ], - "optional": true, - "name": "disable_notification", - "description": "Sends the message silently. Users will receive a notification with no sound." + "name": "disable_notification" }, { + "optional": true, + "description": "Protects the contents of the forwarded message from forwarding and saving", "type": [ "bool" ], - "optional": true, - "name": "protect_content", - "description": "Protects the contents of the forwarded message from forwarding and saving" + "name": "protect_content" }, { + "optional": false, + "description": "Message identifier in the chat specified in from_chat_id", "type": [ "int" ], - "optional": false, - "name": "message_id", - "description": "Message identifier in the chat specified in from_chat_id" + "name": "message_id" } ], + "description": "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.", + "type": "post", "name": "forwardMessage", - "description": "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." + "return": [ + "Message" + ] }, { - "type": "post", - "return": [ - "messages" - ], "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": true, + "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only", "type": [ "int" ], - "optional": true, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only" + "name": "message_thread_id" }, { + "optional": false, + "description": "Unique identifier for the chat where the original messages were sent (or channel username in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "from_chat_id", - "description": "Unique identifier for the chat where the original messages were sent (or channel username in the format @channelusername)" + "name": "from_chat_id" }, { + "optional": false, + "description": "A JSON-serialized list of 1-100 identifiers of messages in the chat from_chat_id to forward. The identifiers must be specified in a strictly increasing order.", "type": [ [ "array", @@ -10492,87 +11973,87 @@ ] ] ], - "optional": false, - "name": "message_ids", - "description": "A JSON-serialized list of 1-100 identifiers of messages in the chat from_chat_id to forward. The identifiers must be specified in a strictly increasing order." + "name": "message_ids" }, { + "optional": true, + "description": "Sends the messages silently. Users will receive a notification with no sound.", "type": [ "bool" ], - "optional": true, - "name": "disable_notification", - "description": "Sends the messages silently. Users will receive a notification with no sound." + "name": "disable_notification" }, { + "optional": true, + "description": "Protects the contents of the forwarded messages from forwarding and saving", "type": [ "bool" ], - "optional": true, - "name": "protect_content", - "description": "Protects the contents of the forwarded messages from forwarding and saving" + "name": "protect_content" } ], + "description": "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.", + "type": "post", "name": "forwardMessages", - "description": "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." + "return": [ + "messages" + ] }, { - "type": "post", - "return": [ - "MessageId" - ], "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": true, + "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only", "type": [ "int" ], - "optional": true, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only" + "name": "message_thread_id" }, { + "optional": false, + "description": "Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "from_chat_id", - "description": "Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)" + "name": "from_chat_id" }, { + "optional": false, + "description": "Message identifier in the chat specified in from_chat_id", "type": [ "int" ], - "optional": false, - "name": "message_id", - "description": "Message identifier in the chat specified in from_chat_id" + "name": "message_id" }, { + "optional": true, + "description": "New caption for media, 0-1024 characters after entities parsing. If not specified, the original caption is kept", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "New caption for media, 0-1024 characters after entities parsing. If not specified, the original caption is kept" + "name": "caption" }, { + "optional": true, + "description": "Mode for parsing entities in the new caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Mode for parsing entities in the new caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "A JSON-serialized list of special entities that appear in the new caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -10581,179 +12062,335 @@ ] ] ], - "optional": true, - "name": "caption_entities", - "description": "A JSON-serialized list of special entities that appear in the new caption, which can be specified instead of parse_mode" + "name": "caption_entities" }, { + "optional": true, + "description": "Pass True, if the caption must be shown above the message media. Ignored if a new caption isn't specified.", "type": [ "bool" ], + "name": "show_caption_above_media" + }, + { "optional": true, - "name": "disable_notification", - "description": "Sends the message silently. Users will receive a notification with no sound." + "description": "Sends the message silently. Users will receive a notification with no sound.", + "type": [ + "bool" + ], + "name": "disable_notification" }, { + "optional": true, + "description": "Protects the contents of the sent message from forwarding and saving", "type": [ "bool" ], + "name": "protect_content" + }, + { "optional": true, - "name": "protect_content", - "description": "Protects the contents of the sent message from forwarding and saving" + "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance", + "type": [ + "bool" + ], + "name": "allow_paid_broadcast" }, { + "optional": true, + "description": "Description of the message to reply to", "type": [ "ReplyParameters" ], - "optional": true, - "name": "reply_parameters", - "description": "Description of the message to reply to" + "name": "reply_parameters" }, { + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user", "type": [ "InlineKeyboardMarkup", "ReplyKeyboardMarkup", "ReplyKeyboardRemove", "ForceReply" ], - "optional": true, - "name": "reply_markup", - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user." + "name": "reply_markup" } ], + "description": "Use this method to copy messages of any kind. Service messages, paid media 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.", + "type": "post", "name": "copyMessage", - "description": "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." + "return": [ + "MessageId" + ] }, { + "params": [ + { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": [ + "int", + "str" + ], + "name": "chat_id" + }, + { + "optional": true, + "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only", + "type": [ + "int" + ], + "name": "message_thread_id" + }, + { + "optional": false, + "description": "Unique identifier for the chat where the original messages were sent (or channel username in the format @channelusername)", + "type": [ + "int", + "str" + ], + "name": "from_chat_id" + }, + { + "optional": false, + "description": "A JSON-serialized list of 1-100 identifiers of messages in the chat from_chat_id to copy. The identifiers must be specified in a strictly increasing order.", + "type": [ + [ + "array", + [ + "int" + ] + ] + ], + "name": "message_ids" + }, + { + "optional": true, + "description": "Sends the messages silently. Users will receive a notification with no sound.", + "type": [ + "bool" + ], + "name": "disable_notification" + }, + { + "optional": true, + "description": "Protects the contents of the sent messages from forwarding and saving", + "type": [ + "bool" + ], + "name": "protect_content" + }, + { + "optional": true, + "description": "Pass True to copy the messages without their captions", + "type": [ + "bool" + ], + "name": "remove_caption" + } + ], + "description": "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, paid media 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.", "type": "post", + "name": "copyMessages", "return": [ "messages" - ], + ] + }, + { "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message will be sent", + "type": [ + "str" + ], + "name": "business_connection_id" + }, + { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": true, + "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only", "type": [ "int" ], + "name": "message_thread_id" + }, + { + "optional": false, + "description": "Photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a photo from the Internet, or upload a new photo using multipart/form-data. The photo must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total. Width and height ratio must be at most 20. More information on Sending Files »", + "type": [ + "file", + "str" + ], + "name": "photo" + }, + { "optional": true, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only" + "description": "Photo caption (may also be used when resending photos by file_id), 0-1024 characters after entities parsing", + "type": [ + "str" + ], + "name": "caption" }, { + "optional": true, + "description": "Mode for parsing entities in the photo caption. See formatting options for more details.", "type": [ - "int", "str" ], - "optional": false, - "name": "from_chat_id", - "description": "Unique identifier for the chat where the original messages were sent (or channel username in the format @channelusername)" + "name": "parse_mode" }, { + "optional": true, + "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", [ - "int" + "MessageEntity" ] ] ], - "optional": false, - "name": "message_ids", - "description": "A JSON-serialized list of 1-100 identifiers of messages in the chat from_chat_id to copy. The identifiers must be specified in a strictly increasing order." + "name": "caption_entities" }, { + "optional": true, + "description": "Pass True, if the caption must be shown above the message media", "type": [ "bool" ], + "name": "show_caption_above_media" + }, + { "optional": true, - "name": "disable_notification", - "description": "Sends the messages silently. Users will receive a notification with no sound." + "description": "Pass True if the photo needs to be covered with a spoiler animation", + "type": [ + "bool" + ], + "name": "has_spoiler" }, { + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound.", "type": [ "bool" ], + "name": "disable_notification" + }, + { "optional": true, - "name": "protect_content", - "description": "Protects the contents of the sent messages from forwarding and saving" + "description": "Protects the contents of the sent message from forwarding and saving", + "type": [ + "bool" + ], + "name": "protect_content" }, { + "optional": true, + "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance", "type": [ "bool" ], + "name": "allow_paid_broadcast" + }, + { + "optional": true, + "description": "Unique identifier of the message effect to be added to the message; for private chats only", + "type": [ + "str" + ], + "name": "message_effect_id" + }, + { + "optional": true, + "description": "Description of the message to reply to", + "type": [ + "ReplyParameters" + ], + "name": "reply_parameters" + }, + { "optional": true, - "name": "remove_caption", - "description": "Pass True to copy the messages without their captions" + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user", + "type": [ + "InlineKeyboardMarkup", + "ReplyKeyboardMarkup", + "ReplyKeyboardRemove", + "ForceReply" + ], + "name": "reply_markup" } ], - "name": "copyMessages", - "description": "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." - }, - { + "description": "Use this method to send photos. On success, the sent Message is returned.", "type": "post", + "name": "sendPhoto", "return": [ "Message" - ], + ] + }, + { "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message will be sent", "type": [ "str" ], - "optional": true, - "name": "business_connection_id", - "description": "Unique identifier of the business connection on behalf of which the message will be sent" + "name": "business_connection_id" }, { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": true, + "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only", "type": [ "int" ], - "optional": true, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only" + "name": "message_thread_id" }, { + "optional": false, + "description": "Audio file to send. Pass a file_id as String to send an audio file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an audio file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files »", "type": [ "file", "str" ], - "optional": false, - "name": "photo", - "description": "Photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a photo from the Internet, or upload a new photo using multipart/form-data. The photo must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total. Width and height ratio must be at most 20. More information on Sending Files »" + "name": "audio" }, { + "optional": true, + "description": "Audio caption, 0-1024 characters after entities parsing", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "Photo caption (may also be used when resending photos by file_id), 0-1024 characters after entities parsing" + "name": "caption" }, { + "optional": true, + "description": "Mode for parsing entities in the audio caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Mode for parsing entities in the photo caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -10762,114 +12399,164 @@ ] ] ], + "name": "caption_entities" + }, + { + "optional": true, + "description": "Duration of the audio in seconds", + "type": [ + "int" + ], + "name": "duration" + }, + { "optional": true, - "name": "caption_entities", - "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" + "description": "Performer", + "type": [ + "str" + ], + "name": "performer" }, { + "optional": true, + "description": "Track name", "type": [ - "bool" + "str" ], + "name": "title" + }, + { "optional": true, - "name": "has_spoiler", - "description": "Pass True if the photo needs to be covered with a spoiler animation" + "description": "Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »", + "type": [ + "file", + "str" + ], + "name": "thumbnail" }, { + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound.", "type": [ "bool" ], + "name": "disable_notification" + }, + { "optional": true, - "name": "disable_notification", - "description": "Sends the message silently. Users will receive a notification with no sound." + "description": "Protects the contents of the sent message from forwarding and saving", + "type": [ + "bool" + ], + "name": "protect_content" }, { + "optional": true, + "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance", "type": [ "bool" ], + "name": "allow_paid_broadcast" + }, + { "optional": true, - "name": "protect_content", - "description": "Protects the contents of the sent message from forwarding and saving" + "description": "Unique identifier of the message effect to be added to the message; for private chats only", + "type": [ + "str" + ], + "name": "message_effect_id" }, { + "optional": true, + "description": "Description of the message to reply to", "type": [ "ReplyParameters" ], - "optional": true, - "name": "reply_parameters", - "description": "Description of the message to reply to" + "name": "reply_parameters" }, { + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user", "type": [ "InlineKeyboardMarkup", "ReplyKeyboardMarkup", "ReplyKeyboardRemove", "ForceReply" ], - "optional": true, - "name": "reply_markup", - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account" + "name": "reply_markup" } ], - "name": "sendPhoto", - "description": "Use this method to send photos. On success, the sent Message is returned." - }, - { + "description": "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.", "type": "post", + "name": "sendAudio", "return": [ "Message" - ], + ] + }, + { "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message will be sent", "type": [ "str" ], - "optional": true, - "name": "business_connection_id", - "description": "Unique identifier of the business connection on behalf of which the message will be sent" + "name": "business_connection_id" }, { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": true, + "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only", "type": [ "int" ], - "optional": true, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only" + "name": "message_thread_id" }, { + "optional": false, + "description": "File to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files »", "type": [ "file", "str" ], - "optional": false, - "name": "audio", - "description": "Audio file to send. Pass a file_id as String to send an audio file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an audio file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files »" + "name": "document" }, { + "optional": true, + "description": "Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »", "type": [ + "file", "str" ], - "optional": true, - "name": "caption", - "description": "Audio caption, 0-1024 characters after entities parsing" + "name": "thumbnail" }, { + "optional": true, + "description": "Document caption (may also be used when resending documents by file_id), 0-1024 characters after entities parsing", "type": [ "str" ], + "name": "caption" + }, + { "optional": true, - "name": "parse_mode", - "description": "Mode for parsing entities in the audio caption. See formatting options for more details." + "description": "Mode for parsing entities in the document caption. See formatting options for more details.", + "type": [ + "str" + ], + "name": "parse_mode" }, { + "optional": true, + "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -10878,148 +12565,163 @@ ] ] ], - "optional": true, - "name": "caption_entities", - "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" + "name": "caption_entities" }, { - "type": [ - "int" - ], "optional": true, - "name": "duration", - "description": "Duration of the audio in seconds" - }, - { + "description": "Disables automatic server-side content type detection for files uploaded using multipart/form-data", "type": [ - "str" + "bool" ], - "optional": true, - "name": "performer", - "description": "Performer" + "name": "disable_content_type_detection" }, { + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound.", "type": [ - "str" + "bool" ], - "optional": true, - "name": "title", - "description": "Track name" + "name": "disable_notification" }, { + "optional": true, + "description": "Protects the contents of the sent message from forwarding and saving", "type": [ - "file", - "str" + "bool" ], - "optional": true, - "name": "thumbnail", - "description": "Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + "name": "protect_content" }, { + "optional": true, + "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance", "type": [ "bool" ], - "optional": true, - "name": "disable_notification", - "description": "Sends the message silently. Users will receive a notification with no sound." + "name": "allow_paid_broadcast" }, { + "optional": true, + "description": "Unique identifier of the message effect to be added to the message; for private chats only", "type": [ - "bool" + "str" ], - "optional": true, - "name": "protect_content", - "description": "Protects the contents of the sent message from forwarding and saving" + "name": "message_effect_id" }, { + "optional": true, + "description": "Description of the message to reply to", "type": [ "ReplyParameters" ], - "optional": true, - "name": "reply_parameters", - "description": "Description of the message to reply to" + "name": "reply_parameters" }, { + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user", "type": [ "InlineKeyboardMarkup", "ReplyKeyboardMarkup", "ReplyKeyboardRemove", "ForceReply" ], - "optional": true, - "name": "reply_markup", - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account" + "name": "reply_markup" } ], - "name": "sendAudio", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "sendDocument", "return": [ "Message" - ], + ] + }, + { "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message will be sent", "type": [ "str" ], - "optional": true, - "name": "business_connection_id", - "description": "Unique identifier of the business connection on behalf of which the message will be sent" + "name": "business_connection_id" }, { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": true, + "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only", "type": [ "int" ], - "optional": true, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only" + "name": "message_thread_id" }, { + "optional": false, + "description": "Video to send. Pass a file_id as String to send a video that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a video from the Internet, or upload a new video using multipart/form-data. More information on Sending Files »", "type": [ "file", "str" ], - "optional": false, - "name": "document", - "description": "File to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files »" + "name": "video" }, { + "optional": true, + "description": "Duration of sent video in seconds", "type": [ - "file", - "str" + "int" ], + "name": "duration" + }, + { "optional": true, - "name": "thumbnail", - "description": "Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + "description": "Video width", + "type": [ + "int" + ], + "name": "width" }, { + "optional": true, + "description": "Video height", "type": [ - "str" + "int" ], + "name": "height" + }, + { "optional": true, - "name": "caption", - "description": "Document caption (may also be used when resending documents by file_id), 0-1024 characters after entities parsing" + "description": "Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »", + "type": [ + "file", + "str" + ], + "name": "thumbnail" }, { + "optional": true, + "description": "Video caption (may also be used when resending videos by file_id), 0-1024 characters after entities parsing", "type": [ "str" ], + "name": "caption" + }, + { "optional": true, - "name": "parse_mode", - "description": "Mode for parsing entities in the document caption. See formatting options for more details." + "description": "Mode for parsing entities in the video caption. See formatting options for more details.", + "type": [ + "str" + ], + "name": "parse_mode" }, { + "optional": true, + "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -11028,147 +12730,179 @@ ] ] ], + "name": "caption_entities" + }, + { "optional": true, - "name": "caption_entities", - "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" + "description": "Pass True, if the caption must be shown above the message media", + "type": [ + "bool" + ], + "name": "show_caption_above_media" }, { + "optional": true, + "description": "Pass True if the video needs to be covered with a spoiler animation", "type": [ "bool" ], + "name": "has_spoiler" + }, + { "optional": true, - "name": "disable_content_type_detection", - "description": "Disables automatic server-side content type detection for files uploaded using multipart/form-data" + "description": "Pass True if the uploaded video is suitable for streaming", + "type": [ + "bool" + ], + "name": "supports_streaming" }, { + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound.", "type": [ "bool" ], + "name": "disable_notification" + }, + { "optional": true, - "name": "disable_notification", - "description": "Sends the message silently. Users will receive a notification with no sound." + "description": "Protects the contents of the sent message from forwarding and saving", + "type": [ + "bool" + ], + "name": "protect_content" }, { + "optional": true, + "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance", "type": [ "bool" ], + "name": "allow_paid_broadcast" + }, + { "optional": true, - "name": "protect_content", - "description": "Protects the contents of the sent message from forwarding and saving" + "description": "Unique identifier of the message effect to be added to the message; for private chats only", + "type": [ + "str" + ], + "name": "message_effect_id" }, { + "optional": true, + "description": "Description of the message to reply to", "type": [ "ReplyParameters" ], - "optional": true, - "name": "reply_parameters", - "description": "Description of the message to reply to" + "name": "reply_parameters" }, { + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user", "type": [ "InlineKeyboardMarkup", "ReplyKeyboardMarkup", "ReplyKeyboardRemove", "ForceReply" ], - "optional": true, - "name": "reply_markup", - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account" + "name": "reply_markup" } ], - "name": "sendDocument", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "sendVideo", "return": [ "Message" - ], + ] + }, + { "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message will be sent", "type": [ "str" ], - "optional": true, - "name": "business_connection_id", - "description": "Unique identifier of the business connection on behalf of which the message will be sent" + "name": "business_connection_id" }, { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": true, + "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only", "type": [ "int" ], - "optional": true, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only" + "name": "message_thread_id" }, { + "optional": false, + "description": "Animation to send. Pass a file_id as String to send an animation that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an animation from the Internet, or upload a new animation using multipart/form-data. More information on Sending Files »", "type": [ "file", "str" ], - "optional": false, - "name": "video", - "description": "Video to send. Pass a file_id as String to send a video that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a video from the Internet, or upload a new video using multipart/form-data. More information on Sending Files »" + "name": "animation" }, { + "optional": true, + "description": "Duration of sent animation in seconds", "type": [ "int" ], - "optional": true, - "name": "duration", - "description": "Duration of sent video in seconds" + "name": "duration" }, { + "optional": true, + "description": "Animation width", "type": [ "int" ], - "optional": true, - "name": "width", - "description": "Video width" + "name": "width" }, { + "optional": true, + "description": "Animation height", "type": [ "int" ], - "optional": true, - "name": "height", - "description": "Video height" + "name": "height" }, { + "optional": true, + "description": "Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »", "type": [ "file", "str" ], - "optional": true, - "name": "thumbnail", - "description": "Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + "name": "thumbnail" }, { + "optional": true, + "description": "Animation caption (may also be used when resending animation by file_id), 0-1024 characters after entities parsing", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "Video caption (may also be used when resending videos by file_id), 0-1024 characters after entities parsing" + "name": "caption" }, { + "optional": true, + "description": "Mode for parsing entities in the animation caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Mode for parsing entities in the video caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -11177,155 +12911,138 @@ ] ] ], - "optional": true, - "name": "caption_entities", - "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" + "name": "caption_entities" }, { + "optional": true, + "description": "Pass True, if the caption must be shown above the message media", "type": [ "bool" ], - "optional": true, - "name": "has_spoiler", - "description": "Pass True if the video needs to be covered with a spoiler animation" + "name": "show_caption_above_media" }, { + "optional": true, + "description": "Pass True if the animation needs to be covered with a spoiler animation", "type": [ "bool" ], - "optional": true, - "name": "supports_streaming", - "description": "Pass True if the uploaded video is suitable for streaming" + "name": "has_spoiler" }, { + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound.", "type": [ "bool" ], + "name": "disable_notification" + }, + { "optional": true, - "name": "disable_notification", - "description": "Sends the message silently. Users will receive a notification with no sound." + "description": "Protects the contents of the sent message from forwarding and saving", + "type": [ + "bool" + ], + "name": "protect_content" }, { + "optional": true, + "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance", "type": [ "bool" ], + "name": "allow_paid_broadcast" + }, + { "optional": true, - "name": "protect_content", - "description": "Protects the contents of the sent message from forwarding and saving" + "description": "Unique identifier of the message effect to be added to the message; for private chats only", + "type": [ + "str" + ], + "name": "message_effect_id" }, { + "optional": true, + "description": "Description of the message to reply to", "type": [ "ReplyParameters" ], - "optional": true, - "name": "reply_parameters", - "description": "Description of the message to reply to" + "name": "reply_parameters" }, { + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user", "type": [ "InlineKeyboardMarkup", "ReplyKeyboardMarkup", "ReplyKeyboardRemove", "ForceReply" ], - "optional": true, - "name": "reply_markup", - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account" + "name": "reply_markup" } ], - "name": "sendVideo", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "sendAnimation", "return": [ "Message" - ], + ] + }, + { "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message will be sent", "type": [ "str" ], - "optional": true, - "name": "business_connection_id", - "description": "Unique identifier of the business connection on behalf of which the message will be sent" + "name": "business_connection_id" }, { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": true, + "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only", "type": [ "int" ], - "optional": true, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only" + "name": "message_thread_id" }, { + "optional": false, + "description": "Audio file to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files »", "type": [ "file", "str" ], - "optional": false, - "name": "animation", - "description": "Animation to send. Pass a file_id as String to send an animation that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an animation from the Internet, or upload a new animation using multipart/form-data. More information on Sending Files »" - }, - { - "type": [ - "int" - ], - "optional": true, - "name": "duration", - "description": "Duration of sent animation in seconds" - }, - { - "type": [ - "int" - ], - "optional": true, - "name": "width", - "description": "Animation width" + "name": "voice" }, { - "type": [ - "int" - ], "optional": true, - "name": "height", - "description": "Animation height" - }, - { + "description": "Voice message caption, 0-1024 characters after entities parsing", "type": [ - "file", "str" ], - "optional": true, - "name": "thumbnail", - "description": "Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + "name": "caption" }, { - "type": [ - "str" - ], "optional": true, - "name": "caption", - "description": "Animation caption (may also be used when resending animation by file_id), 0-1024 characters after entities parsing" - }, - { + "description": "Mode for parsing entities in the voice message caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Mode for parsing entities in the animation caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -11334,314 +13051,361 @@ ] ] ], + "name": "caption_entities" + }, + { "optional": true, - "name": "caption_entities", - "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" + "description": "Duration of the voice message in seconds", + "type": [ + "int" + ], + "name": "duration" }, { + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound.", "type": [ "bool" ], - "optional": true, - "name": "has_spoiler", - "description": "Pass True if the animation needs to be covered with a spoiler animation" + "name": "disable_notification" }, { + "optional": true, + "description": "Protects the contents of the sent message from forwarding and saving", "type": [ "bool" ], - "optional": true, - "name": "disable_notification", - "description": "Sends the message silently. Users will receive a notification with no sound." + "name": "protect_content" }, { + "optional": true, + "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance", "type": [ "bool" ], + "name": "allow_paid_broadcast" + }, + { "optional": true, - "name": "protect_content", - "description": "Protects the contents of the sent message from forwarding and saving" + "description": "Unique identifier of the message effect to be added to the message; for private chats only", + "type": [ + "str" + ], + "name": "message_effect_id" }, { + "optional": true, + "description": "Description of the message to reply to", "type": [ "ReplyParameters" ], - "optional": true, - "name": "reply_parameters", - "description": "Description of the message to reply to" + "name": "reply_parameters" }, { + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user", "type": [ "InlineKeyboardMarkup", "ReplyKeyboardMarkup", "ReplyKeyboardRemove", "ForceReply" ], - "optional": true, - "name": "reply_markup", - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account" + "name": "reply_markup" } ], - "name": "sendAnimation", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "sendVoice", "return": [ "Message" - ], + ] + }, + { "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message will be sent", "type": [ "str" ], - "optional": true, - "name": "business_connection_id", - "description": "Unique identifier of the business connection on behalf of which the message will be sent" + "name": "business_connection_id" }, { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": true, + "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only", "type": [ "int" ], - "optional": true, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only" + "name": "message_thread_id" }, { + "optional": false, + "description": "Video note to send. Pass a file_id as String to send a video note that exists on the Telegram servers (recommended) or upload a new video using multipart/form-data. More information on Sending Files ». Sending video notes by a URL is currently unsupported", "type": [ "file", "str" ], - "optional": false, - "name": "voice", - "description": "Audio file to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files »" + "name": "video_note" }, { + "optional": true, + "description": "Duration of sent video in seconds", "type": [ - "str" + "int" ], - "optional": true, - "name": "caption", - "description": "Voice message caption, 0-1024 characters after entities parsing" + "name": "duration" }, { + "optional": true, + "description": "Video width and height, i.e. diameter of the video message", "type": [ - "str" + "int" ], - "optional": true, - "name": "parse_mode", - "description": "Mode for parsing entities in the voice message caption. See formatting options for more details." + "name": "length" }, { + "optional": true, + "description": "Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »", "type": [ - [ - "array", - [ - "MessageEntity" - ] - ] + "file", + "str" ], - "optional": true, - "name": "caption_entities", - "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" + "name": "thumbnail" }, { + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound.", "type": [ - "int" + "bool" ], - "optional": true, - "name": "duration", - "description": "Duration of the voice message in seconds" + "name": "disable_notification" }, { + "optional": true, + "description": "Protects the contents of the sent message from forwarding and saving", "type": [ "bool" ], - "optional": true, - "name": "disable_notification", - "description": "Sends the message silently. Users will receive a notification with no sound." + "name": "protect_content" }, { + "optional": true, + "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance", "type": [ "bool" ], + "name": "allow_paid_broadcast" + }, + { "optional": true, - "name": "protect_content", - "description": "Protects the contents of the sent message from forwarding and saving" + "description": "Unique identifier of the message effect to be added to the message; for private chats only", + "type": [ + "str" + ], + "name": "message_effect_id" }, { + "optional": true, + "description": "Description of the message to reply to", "type": [ "ReplyParameters" ], - "optional": true, - "name": "reply_parameters", - "description": "Description of the message to reply to" + "name": "reply_parameters" }, { + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user", "type": [ "InlineKeyboardMarkup", "ReplyKeyboardMarkup", "ReplyKeyboardRemove", "ForceReply" ], - "optional": true, - "name": "reply_markup", - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account" + "name": "reply_markup" } ], - "name": "sendVoice", - "description": "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 (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." - }, - { + "description": "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.", "type": "post", + "name": "sendVideoNote", "return": [ "Message" - ], + ] + }, + { "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message will be sent", "type": [ "str" ], - "optional": true, - "name": "business_connection_id", - "description": "Unique identifier of the business connection on behalf of which the message will be sent" + "name": "business_connection_id" }, { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername). If the chat is a channel, all Telegram Star proceeds from this media will be credited to the chat's balance. Otherwise, they will be credited to the bot's balance.", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": false, + "description": "The number of Telegram Stars that must be paid to buy access to the media; 1-2500", "type": [ "int" ], - "optional": true, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only" + "name": "star_count" }, { + "optional": false, + "description": "A JSON-serialized array describing the media to be sent; up to 10 items", "type": [ - "file", - "str" + [ + "array", + [ + "InputPaidMedia" + ] + ] ], - "optional": false, - "name": "video_note", - "description": "Video note to send. Pass a file_id as String to send a video note that exists on the Telegram servers (recommended) or upload a new video using multipart/form-data. More information on Sending Files ». Sending video notes by a URL is currently unsupported" + "name": "media" }, { + "optional": true, + "description": "Bot-defined paid media payload, 0-128 bytes. This will not be displayed to the user, use it for your internal processes.", "type": [ - "int" + "str" ], - "optional": true, - "name": "duration", - "description": "Duration of sent video in seconds" + "name": "payload" }, { + "optional": true, + "description": "Media caption, 0-1024 characters after entities parsing", "type": [ - "int" + "str" ], - "optional": true, - "name": "length", - "description": "Video width and height, i.e. diameter of the video message" + "name": "caption" }, { + "optional": true, + "description": "Mode for parsing entities in the media caption. See formatting options for more details.", "type": [ - "file", "str" ], + "name": "parse_mode" + }, + { "optional": true, - "name": "thumbnail", - "description": "Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode", + "type": [ + [ + "array", + [ + "MessageEntity" + ] + ] + ], + "name": "caption_entities" }, { + "optional": true, + "description": "Pass True, if the caption must be shown above the message media", "type": [ "bool" ], + "name": "show_caption_above_media" + }, + { "optional": true, - "name": "disable_notification", - "description": "Sends the message silently. Users will receive a notification with no sound." + "description": "Sends the message silently. Users will receive a notification with no sound.", + "type": [ + "bool" + ], + "name": "disable_notification" }, { + "optional": true, + "description": "Protects the contents of the sent message from forwarding and saving", "type": [ "bool" ], + "name": "protect_content" + }, + { "optional": true, - "name": "protect_content", - "description": "Protects the contents of the sent message from forwarding and saving" + "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance", + "type": [ + "bool" + ], + "name": "allow_paid_broadcast" }, { + "optional": true, + "description": "Description of the message to reply to", "type": [ "ReplyParameters" ], - "optional": true, - "name": "reply_parameters", - "description": "Description of the message to reply to" + "name": "reply_parameters" }, { + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user", "type": [ "InlineKeyboardMarkup", "ReplyKeyboardMarkup", "ReplyKeyboardRemove", "ForceReply" ], - "optional": true, - "name": "reply_markup", - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account" + "name": "reply_markup" } ], - "name": "sendVideoNote", - "description": "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." - }, - { + "description": "Use this method to send paid media. On success, the sent Message is returned.", "type": "post", + "name": "sendPaidMedia", "return": [ - [ - "array", - [ - "Message" - ] - ] - ], + "Message" + ] + }, + { "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message will be sent", "type": [ "str" ], - "optional": true, - "name": "business_connection_id", - "description": "Unique identifier of the business connection on behalf of which the message will be sent" + "name": "business_connection_id" }, { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": true, + "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only", "type": [ "int" ], - "optional": true, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only" + "name": "message_thread_id" }, { + "optional": false, + "description": "A JSON-serialized array describing messages to be sent, must include 2-10 items", "type": [ [ "array", @@ -11651,493 +13415,583 @@ ] ] ], - "optional": false, - "name": "media", - "description": "A JSON-serialized array describing messages to be sent, must include 2-10 items" + "name": "media" }, { + "optional": true, + "description": "Sends messages silently. Users will receive a notification with no sound.", "type": [ "bool" ], + "name": "disable_notification" + }, + { "optional": true, - "name": "disable_notification", - "description": "Sends messages silently. Users will receive a notification with no sound." + "description": "Protects the contents of the sent messages from forwarding and saving", + "type": [ + "bool" + ], + "name": "protect_content" }, { + "optional": true, + "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance", "type": [ "bool" ], + "name": "allow_paid_broadcast" + }, + { "optional": true, - "name": "protect_content", - "description": "Protects the contents of the sent messages from forwarding and saving" + "description": "Unique identifier of the message effect to be added to the message; for private chats only", + "type": [ + "str" + ], + "name": "message_effect_id" }, { + "optional": true, + "description": "Description of the message to reply to", "type": [ "ReplyParameters" ], - "optional": true, - "name": "reply_parameters", - "description": "Description of the message to reply to" + "name": "reply_parameters" } ], + "description": "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.", + "type": "post", "name": "sendMediaGroup", - "description": "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." + "return": [ + [ + "array", + [ + "Message" + ] + ] + ] }, { - "type": "post", - "return": [ - "Message" - ], "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message will be sent", "type": [ "str" ], - "optional": true, - "name": "business_connection_id", - "description": "Unique identifier of the business connection on behalf of which the message will be sent" + "name": "business_connection_id" }, { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": true, + "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only", "type": [ "int" ], - "optional": true, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only" + "name": "message_thread_id" }, { + "optional": false, + "description": "Latitude of the location", "type": [ "float" ], - "optional": false, - "name": "latitude", - "description": "Latitude of the location" + "name": "latitude" }, { + "optional": false, + "description": "Longitude of the location", "type": [ "float" ], - "optional": false, - "name": "longitude", - "description": "Longitude of the location" + "name": "longitude" }, { + "optional": true, + "description": "The radius of uncertainty for the location, measured in meters; 0-1500", "type": [ "float" ], - "optional": true, - "name": "horizontal_accuracy", - "description": "The radius of uncertainty for the location, measured in meters; 0-1500" + "name": "horizontal_accuracy" }, { + "optional": true, + "description": "Period in seconds during which the location will be updated (see Live Locations, should be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely.", "type": [ "int" ], + "name": "live_period" + }, + { "optional": true, - "name": "live_period", - "description": "Period in seconds for which the location will be updated (see Live Locations, should be between 60 and 86400." + "description": "For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.", + "type": [ + "int" + ], + "name": "heading" }, { + "optional": true, + "description": "For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.", "type": [ "int" ], - "optional": true, - "name": "heading", - "description": "For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified." + "name": "proximity_alert_radius" }, { + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound.", "type": [ - "int" + "bool" ], - "optional": true, - "name": "proximity_alert_radius", - "description": "For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified." + "name": "disable_notification" }, { + "optional": true, + "description": "Protects the contents of the sent message from forwarding and saving", "type": [ "bool" ], - "optional": true, - "name": "disable_notification", - "description": "Sends the message silently. Users will receive a notification with no sound." + "name": "protect_content" }, { + "optional": true, + "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance", "type": [ "bool" ], + "name": "allow_paid_broadcast" + }, + { "optional": true, - "name": "protect_content", - "description": "Protects the contents of the sent message from forwarding and saving" + "description": "Unique identifier of the message effect to be added to the message; for private chats only", + "type": [ + "str" + ], + "name": "message_effect_id" }, { + "optional": true, + "description": "Description of the message to reply to", "type": [ "ReplyParameters" ], - "optional": true, - "name": "reply_parameters", - "description": "Description of the message to reply to" + "name": "reply_parameters" }, { + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user", "type": [ "InlineKeyboardMarkup", "ReplyKeyboardMarkup", "ReplyKeyboardRemove", "ForceReply" ], - "optional": true, - "name": "reply_markup", - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account" + "name": "reply_markup" } ], - "name": "sendLocation", - "description": "Use this method to send point on the map. On success, the sent Message is returned." - }, - { + "description": "Use this method to send point on the map. On success, the sent Message is returned.", "type": "post", + "name": "sendLocation", "return": [ "Message" - ], + ] + }, + { "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message will be sent", "type": [ "str" ], - "optional": true, - "name": "business_connection_id", - "description": "Unique identifier of the business connection on behalf of which the message will be sent" + "name": "business_connection_id" }, { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": true, + "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only", "type": [ "int" ], - "optional": true, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only" + "name": "message_thread_id" }, { + "optional": false, + "description": "Latitude of the venue", "type": [ "float" ], - "optional": false, - "name": "latitude", - "description": "Latitude of the venue" + "name": "latitude" }, { + "optional": false, + "description": "Longitude of the venue", "type": [ "float" ], - "optional": false, - "name": "longitude", - "description": "Longitude of the venue" + "name": "longitude" }, { + "optional": false, + "description": "Name of the venue", "type": [ "str" ], - "optional": false, - "name": "title", - "description": "Name of the venue" + "name": "title" }, { + "optional": false, + "description": "Address of the venue", "type": [ "str" ], - "optional": false, - "name": "address", - "description": "Address of the venue" + "name": "address" }, { + "optional": true, + "description": "Foursquare identifier of the venue", "type": [ "str" ], - "optional": true, - "name": "foursquare_id", - "description": "Foursquare identifier of the venue" + "name": "foursquare_id" }, { + "optional": true, + "description": "Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)", "type": [ "str" ], - "optional": true, - "name": "foursquare_type", - "description": "Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)" + "name": "foursquare_type" }, { + "optional": true, + "description": "Google Places identifier of the venue", "type": [ "str" ], - "optional": true, - "name": "google_place_id", - "description": "Google Places identifier of the venue" + "name": "google_place_id" }, { + "optional": true, + "description": "Google Places type of the venue. (See supported types.)", "type": [ "str" ], - "optional": true, - "name": "google_place_type", - "description": "Google Places type of the venue. (See supported types.)" + "name": "google_place_type" }, { + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound.", "type": [ "bool" ], + "name": "disable_notification" + }, + { "optional": true, - "name": "disable_notification", - "description": "Sends the message silently. Users will receive a notification with no sound." + "description": "Protects the contents of the sent message from forwarding and saving", + "type": [ + "bool" + ], + "name": "protect_content" }, { + "optional": true, + "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance", "type": [ "bool" ], + "name": "allow_paid_broadcast" + }, + { "optional": true, - "name": "protect_content", - "description": "Protects the contents of the sent message from forwarding and saving" + "description": "Unique identifier of the message effect to be added to the message; for private chats only", + "type": [ + "str" + ], + "name": "message_effect_id" }, { + "optional": true, + "description": "Description of the message to reply to", "type": [ "ReplyParameters" ], - "optional": true, - "name": "reply_parameters", - "description": "Description of the message to reply to" + "name": "reply_parameters" }, { + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user", "type": [ "InlineKeyboardMarkup", "ReplyKeyboardMarkup", "ReplyKeyboardRemove", "ForceReply" ], - "optional": true, - "name": "reply_markup", - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account" + "name": "reply_markup" } ], - "name": "sendVenue", - "description": "Use this method to send information about a venue. On success, the sent Message is returned." - }, - { + "description": "Use this method to send information about a venue. On success, the sent Message is returned.", "type": "post", + "name": "sendVenue", "return": [ "Message" - ], + ] + }, + { "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message will be sent", "type": [ "str" ], - "optional": true, - "name": "business_connection_id", - "description": "Unique identifier of the business connection on behalf of which the message will be sent" + "name": "business_connection_id" }, { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": true, + "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only", "type": [ "int" ], - "optional": true, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only" + "name": "message_thread_id" }, { + "optional": false, + "description": "Contact's phone number", "type": [ "str" ], - "optional": false, - "name": "phone_number", - "description": "Contact's phone number" + "name": "phone_number" }, { + "optional": false, + "description": "Contact's first name", "type": [ "str" ], - "optional": false, - "name": "first_name", - "description": "Contact's first name" + "name": "first_name" }, { + "optional": true, + "description": "Contact's last name", "type": [ "str" ], - "optional": true, - "name": "last_name", - "description": "Contact's last name" + "name": "last_name" }, { + "optional": true, + "description": "Additional data about the contact in the form of a vCard, 0-2048 bytes", "type": [ "str" ], - "optional": true, - "name": "vcard", - "description": "Additional data about the contact in the form of a vCard, 0-2048 bytes" + "name": "vcard" }, { + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound.", "type": [ "bool" ], + "name": "disable_notification" + }, + { "optional": true, - "name": "disable_notification", - "description": "Sends the message silently. Users will receive a notification with no sound." + "description": "Protects the contents of the sent message from forwarding and saving", + "type": [ + "bool" + ], + "name": "protect_content" }, { + "optional": true, + "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance", "type": [ "bool" ], + "name": "allow_paid_broadcast" + }, + { "optional": true, - "name": "protect_content", - "description": "Protects the contents of the sent message from forwarding and saving" + "description": "Unique identifier of the message effect to be added to the message; for private chats only", + "type": [ + "str" + ], + "name": "message_effect_id" }, { + "optional": true, + "description": "Description of the message to reply to", "type": [ "ReplyParameters" ], - "optional": true, - "name": "reply_parameters", - "description": "Description of the message to reply to" + "name": "reply_parameters" }, { + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user", "type": [ "InlineKeyboardMarkup", "ReplyKeyboardMarkup", "ReplyKeyboardRemove", "ForceReply" ], - "optional": true, - "name": "reply_markup", - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account" + "name": "reply_markup" } ], - "name": "sendContact", - "description": "Use this method to send phone contacts. On success, the sent Message is returned." - }, - { + "description": "Use this method to send phone contacts. On success, the sent Message is returned.", "type": "post", + "name": "sendContact", "return": [ "Message" - ], + ] + }, + { "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message will be sent", "type": [ "str" ], - "optional": true, - "name": "business_connection_id", - "description": "Unique identifier of the business connection on behalf of which the message will be sent" + "name": "business_connection_id" }, { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": true, + "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only", "type": [ "int" ], - "optional": true, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only" + "name": "message_thread_id" }, { + "optional": false, + "description": "Poll question, 1-300 characters", "type": [ "str" ], - "optional": false, - "name": "question", - "description": "Poll question, 1-300 characters" + "name": "question" + }, + { + "optional": true, + "description": "Mode for parsing entities in the question. See formatting options for more details. Currently, only custom emoji entities are allowed", + "type": [ + "str" + ], + "name": "question_parse_mode" }, { + "optional": true, + "description": "A JSON-serialized list of special entities that appear in the poll question. It can be specified instead of question_parse_mode", "type": [ [ "array", [ - "str" + "MessageEntity" ] ] ], + "name": "question_entities" + }, + { "optional": false, - "name": "options", - "description": "A JSON-serialized list of answer options, 2-10 strings 1-100 characters each" + "description": "A JSON-serialized list of 2-10 answer options", + "type": [ + [ + "array", + [ + "InputPollOption" + ] + ] + ], + "name": "options" }, { + "optional": true, + "description": "True, if the poll needs to be anonymous, defaults to True", "type": [ "bool" ], - "optional": true, - "name": "is_anonymous", - "description": "True, if the poll needs to be anonymous, defaults to True" + "name": "is_anonymous" }, { + "optional": true, + "description": "Poll type, “quiz” or “regular”, defaults to “regular”", "type": [ "str" ], - "optional": true, - "name": "type", - "description": "Poll type, “quiz” or “regular”, defaults to “regular”" + "name": "type" }, { + "optional": true, + "description": "True, if the poll allows multiple answers, ignored for polls in quiz mode, defaults to False", "type": [ "bool" ], - "optional": true, - "name": "allows_multiple_answers", - "description": "True, if the poll allows multiple answers, ignored for polls in quiz mode, defaults to False" + "name": "allows_multiple_answers" }, { + "optional": true, + "description": "0-based identifier of the correct answer option, required for polls in quiz mode", "type": [ "int" ], - "optional": true, - "name": "correct_option_id", - "description": "0-based identifier of the correct answer option, required for polls in quiz mode" + "name": "correct_option_id" }, { + "optional": true, + "description": "Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters with at most 2 line feeds after entities parsing", "type": [ "str" ], - "optional": true, - "name": "explanation", - "description": "Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters with at most 2 line feeds after entities parsing" + "name": "explanation" }, { + "optional": true, + "description": "Mode for parsing entities in the explanation. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "explanation_parse_mode", - "description": "Mode for parsing entities in the explanation. See formatting options for more details." + "name": "explanation_parse_mode" }, { + "optional": true, + "description": "A JSON-serialized list of special entities that appear in the poll explanation. It can be specified instead of explanation_parse_mode", "type": [ [ "array", @@ -12146,218 +14000,250 @@ ] ] ], - "optional": true, - "name": "explanation_entities", - "description": "A JSON-serialized list of special entities that appear in the poll explanation, which can be specified instead of parse_mode" + "name": "explanation_entities" }, { + "optional": true, + "description": "Amount of time in seconds the poll will be active after creation, 5-600. Can't be used together with close_date.", "type": [ "int" ], - "optional": true, - "name": "open_period", - "description": "Amount of time in seconds the poll will be active after creation, 5-600. Can't be used together with close_date." + "name": "open_period" }, { + "optional": true, + "description": "Point in time (Unix timestamp) when the poll will be automatically closed. Must be at least 5 and no more than 600 seconds in the future. Can't be used together with open_period.", "type": [ "int" ], - "optional": true, - "name": "close_date", - "description": "Point in time (Unix timestamp) when the poll will be automatically closed. Must be at least 5 and no more than 600 seconds in the future. Can't be used together with open_period." + "name": "close_date" }, { + "optional": true, + "description": "Pass True if the poll needs to be immediately closed. This can be useful for poll preview.", "type": [ "bool" ], - "optional": true, - "name": "is_closed", - "description": "Pass True if the poll needs to be immediately closed. This can be useful for poll preview." + "name": "is_closed" }, { + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound.", "type": [ "bool" ], + "name": "disable_notification" + }, + { "optional": true, - "name": "disable_notification", - "description": "Sends the message silently. Users will receive a notification with no sound." + "description": "Protects the contents of the sent message from forwarding and saving", + "type": [ + "bool" + ], + "name": "protect_content" }, { + "optional": true, + "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance", "type": [ "bool" ], + "name": "allow_paid_broadcast" + }, + { "optional": true, - "name": "protect_content", - "description": "Protects the contents of the sent message from forwarding and saving" + "description": "Unique identifier of the message effect to be added to the message; for private chats only", + "type": [ + "str" + ], + "name": "message_effect_id" }, { + "optional": true, + "description": "Description of the message to reply to", "type": [ "ReplyParameters" ], - "optional": true, - "name": "reply_parameters", - "description": "Description of the message to reply to" + "name": "reply_parameters" }, { + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user", "type": [ "InlineKeyboardMarkup", "ReplyKeyboardMarkup", "ReplyKeyboardRemove", "ForceReply" ], - "optional": true, - "name": "reply_markup", - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account" + "name": "reply_markup" } ], - "name": "sendPoll", - "description": "Use this method to send a native poll. On success, the sent Message is returned." - }, - { + "description": "Use this method to send a native poll. On success, the sent Message is returned.", "type": "post", + "name": "sendPoll", "return": [ "Message" - ], + ] + }, + { "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message will be sent", "type": [ "str" ], - "optional": true, - "name": "business_connection_id", - "description": "Unique identifier of the business connection on behalf of which the message will be sent" + "name": "business_connection_id" }, { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": true, + "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only", "type": [ "int" ], - "optional": true, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only" + "name": "message_thread_id" }, { + "optional": true, + "description": "Emoji on which the dice throw animation is based. Currently, must be one of “”, “”, “”, “”, “”, or “”. Dice can have values 1-6 for “”, “” and “”, values 1-5 for “” and “”, and values 1-64 for “”. Defaults to “”", "type": [ "str" ], - "optional": true, - "name": "emoji", - "description": "Emoji on which the dice throw animation is based. Currently, must be one of “”, “”, “”, “”, “”, or “”. Dice can have values 1-6 for “”, “” and “”, values 1-5 for “” and “”, and values 1-64 for “”. Defaults to “”" + "name": "emoji" }, { + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound.", "type": [ "bool" ], + "name": "disable_notification" + }, + { "optional": true, - "name": "disable_notification", - "description": "Sends the message silently. Users will receive a notification with no sound." + "description": "Protects the contents of the sent message from forwarding", + "type": [ + "bool" + ], + "name": "protect_content" }, { + "optional": true, + "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance", "type": [ "bool" ], + "name": "allow_paid_broadcast" + }, + { "optional": true, - "name": "protect_content", - "description": "Protects the contents of the sent message from forwarding" + "description": "Unique identifier of the message effect to be added to the message; for private chats only", + "type": [ + "str" + ], + "name": "message_effect_id" }, { + "optional": true, + "description": "Description of the message to reply to", "type": [ "ReplyParameters" ], - "optional": true, - "name": "reply_parameters", - "description": "Description of the message to reply to" + "name": "reply_parameters" }, { + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user", "type": [ "InlineKeyboardMarkup", "ReplyKeyboardMarkup", "ReplyKeyboardRemove", "ForceReply" ], - "optional": true, - "name": "reply_markup", - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account" + "name": "reply_markup" } ], + "description": "Use this method to send an animated emoji that will display a random value. On success, the sent Message is returned.", + "type": "post", "name": "sendDice", - "description": "Use this method to send an animated emoji that will display a random value. On success, the sent Message is returned." + "return": [ + "Message" + ] }, { - "type": "post", - "return": [ - "true" - ], "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the action will be sent", "type": [ "str" ], - "optional": true, - "name": "business_connection_id", - "description": "Unique identifier of the business connection on behalf of which the action will be sent" + "name": "business_connection_id" }, { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": true, + "description": "Unique identifier for the target message thread; for supergroups only", "type": [ "int" ], - "optional": true, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread; for supergroups only" + "name": "message_thread_id" }, { + "optional": false, + "description": "Type of action to broadcast. Choose one, depending on what the user is about to receive: typing for text messages, upload_photo for photos, record_video or upload_video for videos, record_voice or upload_voice for voice notes, upload_document for general files, choose_sticker for stickers, find_location for location data, record_video_note or upload_video_note for video notes.", "type": [ "str" ], - "optional": false, - "name": "action", - "description": "Type of action to broadcast. Choose one, depending on what the user is about to receive: typing for text messages, upload_photo for photos, record_video or upload_video for videos, record_voice or upload_voice for voice notes, upload_document for general files, choose_sticker for stickers, find_location for location data, record_video_note or upload_video_note for video notes." + "name": "action" } ], - "name": "sendChatAction", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "sendChatAction", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": false, + "description": "Identifier of the target message. If the message belongs to a media group, the reaction is set to the first non-deleted message in the group instead.", "type": [ "int" ], - "optional": false, - "name": "message_id", - "description": "Identifier of the target message. If the message belongs to a media group, the reaction is set to the first non-deleted message in the group instead." + "name": "message_id" }, { + "optional": true, + "description": "A JSON-serialized list of reaction types to set on the message. Currently, as non-premium users, bots can set up to one reaction per message. A custom emoji reaction can be used if it is either already present on the message or explicitly allowed by chat administrators. Paid reactions can't be used by bots.", "type": [ [ "array", @@ -12366,1485 +14252,1613 @@ ] ] ], - "optional": true, - "name": "reaction", - "description": "A JSON-serialized list of reaction types to set on the message. Currently, as non-premium users, bots can set up to one reaction per message. A custom emoji reaction can be used if it is either already present on the message or explicitly allowed by chat administrators." + "name": "reaction" }, { + "optional": true, + "description": "Pass True to set the reaction with a big animation", "type": [ "bool" ], - "optional": true, - "name": "is_big", - "description": "Pass True to set the reaction with a big animation" + "name": "is_big" } ], + "description": "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. Bots can't use paid reactions. Returns True on success.", + "type": "post", "name": "setMessageReaction", - "description": "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." + "return": [ + "true" + ] }, { + "params": [ + { + "optional": false, + "description": "Unique identifier of the target user", + "type": [ + "int" + ], + "name": "user_id" + }, + { + "optional": true, + "description": "Sequential number of the first photo to be returned. By default, all photos are returned.", + "type": [ + "int" + ], + "name": "offset" + }, + { + "optional": true, + "description": "Limits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100.", + "type": [ + "int" + ], + "name": "limit" + } + ], + "description": "Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object.", "type": "get", + "name": "getUserProfilePhotos", "return": [ "UserProfilePhotos" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier of the target user", "type": [ "int" ], - "optional": false, - "name": "user_id", - "description": "Unique identifier of the target user" + "name": "user_id" }, { + "optional": true, + "description": "Custom emoji identifier of the emoji status to set. Pass an empty string to remove the status.", "type": [ - "int" + "str" ], - "optional": true, - "name": "offset", - "description": "Sequential number of the first photo to be returned. By default, all photos are returned." + "name": "emoji_status_custom_emoji_id" }, { + "optional": true, + "description": "Expiration date of the emoji status, if any", "type": [ "int" ], - "optional": true, - "name": "limit", - "description": "Limits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100." + "name": "emoji_status_expiration_date" } ], - "name": "getUserProfilePhotos", - "description": "Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object." + "description": "Changes the emoji status for a given user that previously allowed the bot to manage their emoji status via the Mini App method requestEmojiStatusAccess. Returns True on success.", + "type": "post", + "name": "setUserEmojiStatus", + "return": [ + "true" + ] }, { - "type": "get", - "return": [ - "File" - ], "params": [ { + "optional": false, + "description": "File identifier to get information about", "type": [ "str" ], - "optional": false, - "name": "file_id", - "description": "File identifier to get information about" + "name": "file_id" } ], + "description": "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.", + "type": "get", "name": "getFile", - "description": "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." + "return": [ + "File" + ] }, { - "type": "post", - "return": [ - "true" - ], "params": [ { + "optional": false, + "description": "Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": false, + "description": "Unique identifier of the target user", "type": [ "int" ], - "optional": false, - "name": "user_id", - "description": "Unique identifier of the target user" + "name": "user_id" }, { + "optional": true, + "description": "Date when the user will be unbanned; Unix time. If user is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever. Applied for supergroups and channels only.", "type": [ "int" ], - "optional": true, - "name": "until_date", - "description": "Date when the user will be unbanned; Unix time. If user is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever. Applied for supergroups and channels only." + "name": "until_date" }, { + "optional": true, + "description": "Pass True to delete all messages from the chat for the user that is being removed. If False, the user will be able to see messages in the group that were sent before the user was removed. Always True for supergroups and channels.", "type": [ "bool" ], - "optional": true, - "name": "revoke_messages", - "description": "Pass True to delete all messages from the chat for the user that is being removed. If False, the user will be able to see messages in the group that were sent before the user was removed. Always True for supergroups and channels." + "name": "revoke_messages" } ], - "name": "banChatMember", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "banChatMember", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": false, + "description": "Unique identifier of the target user", "type": [ "int" ], - "optional": false, - "name": "user_id", - "description": "Unique identifier of the target user" + "name": "user_id" }, { + "optional": true, + "description": "Do nothing if the user is not banned", "type": [ "bool" ], - "optional": true, - "name": "only_if_banned", - "description": "Do nothing if the user is not banned" + "name": "only_if_banned" } ], - "name": "unbanChatMember", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "unbanChatMember", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + "name": "chat_id" }, { + "optional": false, + "description": "Unique identifier of the target user", "type": [ "int" ], - "optional": false, - "name": "user_id", - "description": "Unique identifier of the target user" + "name": "user_id" }, { + "optional": false, + "description": "A JSON-serialized object for new user permissions", "type": [ "ChatPermissions" ], - "optional": false, - "name": "permissions", - "description": "A JSON-serialized object for new user permissions" + "name": "permissions" }, { + "optional": true, + "description": "Pass True if chat permissions are set independently. Otherwise, the can_send_other_messages and can_add_web_page_previews permissions will imply the can_send_messages, can_send_audios, can_send_documents, can_send_photos, can_send_videos, can_send_video_notes, and can_send_voice_notes permissions; the can_send_polls permission will imply the can_send_messages permission.", "type": [ "bool" ], - "optional": true, - "name": "use_independent_chat_permissions", - "description": "Pass True if chat permissions are set independently. Otherwise, the can_send_other_messages and can_add_web_page_previews permissions will imply the can_send_messages, can_send_audios, can_send_documents, can_send_photos, can_send_videos, can_send_video_notes, and can_send_voice_notes permissions; the can_send_polls permission will imply the can_send_messages permission." + "name": "use_independent_chat_permissions" }, { + "optional": true, + "description": "Date when restrictions will be lifted for the user; Unix time. If user is restricted for more than 366 days or less than 30 seconds from the current time, they are considered to be restricted forever", "type": [ "int" ], - "optional": true, - "name": "until_date", - "description": "Date when restrictions will be lifted for the user; Unix time. If user is restricted for more than 366 days or less than 30 seconds from the current time, they are considered to be restricted forever" + "name": "until_date" } ], - "name": "restrictChatMember", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "restrictChatMember", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": false, + "description": "Unique identifier of the target user", "type": [ "int" ], - "optional": false, - "name": "user_id", - "description": "Unique identifier of the target user" + "name": "user_id" }, { + "optional": true, + "description": "Pass True if the administrator's presence in the chat is hidden", "type": [ "bool" ], - "optional": true, - "name": "is_anonymous", - "description": "Pass True if the administrator's presence in the chat is hidden" + "name": "is_anonymous" }, { + "optional": true, + "description": "Pass True if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege.", "type": [ "bool" ], - "optional": true, - "name": "can_manage_chat", - "description": "Pass True if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege." + "name": "can_manage_chat" }, { + "optional": true, + "description": "Pass True if the administrator can delete messages of other users", "type": [ "bool" ], - "optional": true, - "name": "can_delete_messages", - "description": "Pass True if the administrator can delete messages of other users" + "name": "can_delete_messages" }, { + "optional": true, + "description": "Pass True if the administrator can manage video chats", "type": [ "bool" ], - "optional": true, - "name": "can_manage_video_chats", - "description": "Pass True if the administrator can manage video chats" + "name": "can_manage_video_chats" }, { + "optional": true, + "description": "Pass True if the administrator can restrict, ban or unban chat members, or access supergroup statistics", "type": [ "bool" ], - "optional": true, - "name": "can_restrict_members", - "description": "Pass True if the administrator can restrict, ban or unban chat members, or access supergroup statistics" + "name": "can_restrict_members" }, { + "optional": true, + "description": "Pass True if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by him)", "type": [ "bool" ], - "optional": true, - "name": "can_promote_members", - "description": "Pass True if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by him)" + "name": "can_promote_members" }, { + "optional": true, + "description": "Pass True if the administrator can change chat title, photo and other settings", "type": [ "bool" ], - "optional": true, - "name": "can_change_info", - "description": "Pass True if the administrator can change chat title, photo and other settings" + "name": "can_change_info" }, { + "optional": true, + "description": "Pass True if the administrator can invite new users to the chat", "type": [ "bool" ], - "optional": true, - "name": "can_invite_users", - "description": "Pass True if the administrator can invite new users to the chat" + "name": "can_invite_users" }, { + "optional": true, + "description": "Pass True if the administrator can post stories to the chat", "type": [ "bool" ], - "optional": true, - "name": "can_post_stories", - "description": "Pass True if the administrator can post stories to the chat" + "name": "can_post_stories" }, { + "optional": true, + "description": "Pass True if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access the chat's story archive", "type": [ "bool" ], - "optional": true, - "name": "can_edit_stories", - "description": "Pass True if the administrator can edit stories posted by other users" + "name": "can_edit_stories" }, { + "optional": true, + "description": "Pass True if the administrator can delete stories posted by other users", "type": [ "bool" ], - "optional": true, - "name": "can_delete_stories", - "description": "Pass True if the administrator can delete stories posted by other users" + "name": "can_delete_stories" }, { + "optional": true, + "description": "Pass True if the administrator can post messages in the channel, or access channel statistics; for channels only", "type": [ "bool" ], - "optional": true, - "name": "can_post_messages", - "description": "Pass True if the administrator can post messages in the channel, or access channel statistics; for channels only" + "name": "can_post_messages" }, { + "optional": true, + "description": "Pass True if the administrator can edit messages of other users and can pin messages; for channels only", "type": [ "bool" ], - "optional": true, - "name": "can_edit_messages", - "description": "Pass True if the administrator can edit messages of other users and can pin messages; for channels only" + "name": "can_edit_messages" }, { + "optional": true, + "description": "Pass True if the administrator can pin messages; for supergroups only", "type": [ "bool" ], - "optional": true, - "name": "can_pin_messages", - "description": "Pass True if the administrator can pin messages; for supergroups only" + "name": "can_pin_messages" }, { + "optional": true, + "description": "Pass True if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only", "type": [ "bool" ], - "optional": true, - "name": "can_manage_topics", - "description": "Pass True if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only" + "name": "can_manage_topics" } ], - "name": "promoteChatMember", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "promoteChatMember", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + "name": "chat_id" }, { + "optional": false, + "description": "Unique identifier of the target user", "type": [ "int" ], - "optional": false, - "name": "user_id", - "description": "Unique identifier of the target user" + "name": "user_id" }, { + "optional": false, + "description": "New custom title for the administrator; 0-16 characters, emoji are not allowed", "type": [ "str" ], - "optional": false, - "name": "custom_title", - "description": "New custom title for the administrator; 0-16 characters, emoji are not allowed" + "name": "custom_title" } ], - "name": "setChatAdministratorCustomTitle", - "description": "Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success." - }, - { + "description": "Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success.", "type": "post", + "name": "setChatAdministratorCustomTitle", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": false, + "description": "Unique identifier of the target sender chat", "type": [ "int" ], - "optional": false, - "name": "sender_chat_id", - "description": "Unique identifier of the target sender chat" + "name": "sender_chat_id" } ], - "name": "banChatSenderChat", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "banChatSenderChat", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": false, + "description": "Unique identifier of the target sender chat", "type": [ "int" ], - "optional": false, - "name": "sender_chat_id", - "description": "Unique identifier of the target sender chat" + "name": "sender_chat_id" } ], - "name": "unbanChatSenderChat", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "unbanChatSenderChat", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + "name": "chat_id" }, { + "optional": false, + "description": "A JSON-serialized object for new default chat permissions", "type": [ "ChatPermissions" ], - "optional": false, - "name": "permissions", - "description": "A JSON-serialized object for new default chat permissions" + "name": "permissions" }, { + "optional": true, + "description": "Pass True if chat permissions are set independently. Otherwise, the can_send_other_messages and can_add_web_page_previews permissions will imply the can_send_messages, can_send_audios, can_send_documents, can_send_photos, can_send_videos, can_send_video_notes, and can_send_voice_notes permissions; the can_send_polls permission will imply the can_send_messages permission.", "type": [ "bool" ], - "optional": true, - "name": "use_independent_chat_permissions", - "description": "Pass True if chat permissions are set independently. Otherwise, the can_send_other_messages and can_add_web_page_previews permissions will imply the can_send_messages, can_send_audios, can_send_documents, can_send_photos, can_send_videos, can_send_video_notes, and can_send_voice_notes permissions; the can_send_polls permission will imply the can_send_messages permission." + "name": "use_independent_chat_permissions" } ], + "description": "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.", + "type": "post", "name": "setChatPermissions", - "description": "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." + "return": [ + "true" + ] }, { - "type": "post", - "return": [ - "str" - ], "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" } ], + "description": "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.", + "type": "post", "name": "exportChatInviteLink", - "description": "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." + "return": [ + "str" + ] }, { - "type": "post", - "return": [ - "ChatInviteLink" - ], "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": true, + "description": "Invite link name; 0-32 characters", "type": [ "str" ], - "optional": true, - "name": "name", - "description": "Invite link name; 0-32 characters" + "name": "name" }, { + "optional": true, + "description": "Point in time (Unix timestamp) when the link will expire", "type": [ "int" ], - "optional": true, - "name": "expire_date", - "description": "Point in time (Unix timestamp) when the link will expire" + "name": "expire_date" }, { + "optional": true, + "description": "The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999", "type": [ "int" ], - "optional": true, - "name": "member_limit", - "description": "The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999" + "name": "member_limit" }, { + "optional": true, + "description": "True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can't be specified", "type": [ "bool" ], - "optional": true, - "name": "creates_join_request", - "description": "True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can't be specified" + "name": "creates_join_request" } ], - "name": "createChatInviteLink", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "createChatInviteLink", "return": [ "ChatInviteLink" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": false, + "description": "The invite link to edit", "type": [ "str" ], - "optional": false, - "name": "invite_link", - "description": "The invite link to edit" + "name": "invite_link" }, { + "optional": true, + "description": "Invite link name; 0-32 characters", "type": [ "str" ], - "optional": true, - "name": "name", - "description": "Invite link name; 0-32 characters" + "name": "name" }, { + "optional": true, + "description": "Point in time (Unix timestamp) when the link will expire", "type": [ "int" ], - "optional": true, - "name": "expire_date", - "description": "Point in time (Unix timestamp) when the link will expire" + "name": "expire_date" }, { + "optional": true, + "description": "The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999", "type": [ "int" ], - "optional": true, - "name": "member_limit", - "description": "The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999" + "name": "member_limit" }, { + "optional": true, + "description": "True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can't be specified", "type": [ "bool" ], - "optional": true, - "name": "creates_join_request", - "description": "True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can't be specified" + "name": "creates_join_request" } ], + "description": "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.", + "type": "post", "name": "editChatInviteLink", - "description": "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." + "return": [ + "ChatInviteLink" + ] }, { + "params": [ + { + "optional": false, + "description": "Unique identifier for the target channel chat or username of the target channel (in the format @channelusername)", + "type": [ + "int", + "str" + ], + "name": "chat_id" + }, + { + "optional": true, + "description": "Invite link name; 0-32 characters", + "type": [ + "str" + ], + "name": "name" + }, + { + "optional": false, + "description": "The number of seconds the subscription will be active for before the next payment. Currently, it must always be 2592000 (30 days).", + "type": [ + "int" + ], + "name": "subscription_period" + }, + { + "optional": false, + "description": "The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat; 1-2500", + "type": [ + "int" + ], + "name": "subscription_price" + } + ], + "description": "Use this method to create a subscription invite link for a channel chat. The bot must have the can_invite_users administrator rights. The link can be edited using the method editChatSubscriptionInviteLink or revoked using the method revokeChatInviteLink. Returns the new invite link as a ChatInviteLink object.", "type": "post", + "name": "createChatSubscriptionInviteLink", "return": [ "ChatInviteLink" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], + "name": "chat_id" + }, + { + "optional": false, + "description": "The invite link to edit", + "type": [ + "str" + ], + "name": "invite_link" + }, + { + "optional": true, + "description": "Invite link name; 0-32 characters", + "type": [ + "str" + ], + "name": "name" + } + ], + "description": "Use this method to edit a subscription invite link created by the bot. The bot must have the can_invite_users administrator rights. Returns the edited invite link as a ChatInviteLink object.", + "type": "post", + "name": "editChatSubscriptionInviteLink", + "return": [ + "ChatInviteLink" + ] + }, + { + "params": [ + { "optional": false, - "name": "chat_id", - "description": "Unique identifier of the target chat or username of the target channel (in the format @channelusername)" + "description": "Unique identifier of the target chat or username of the target channel (in the format @channelusername)", + "type": [ + "int", + "str" + ], + "name": "chat_id" }, { + "optional": false, + "description": "The invite link to revoke", "type": [ "str" ], - "optional": false, - "name": "invite_link", - "description": "The invite link to revoke" + "name": "invite_link" } ], + "description": "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.", + "type": "post", "name": "revokeChatInviteLink", - "description": "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." + "return": [ + "ChatInviteLink" + ] }, { - "type": "post", - "return": [ - "true" - ], "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": false, + "description": "Unique identifier of the target user", "type": [ "int" ], - "optional": false, - "name": "user_id", - "description": "Unique identifier of the target user" + "name": "user_id" } ], - "name": "approveChatJoinRequest", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "approveChatJoinRequest", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": false, + "description": "Unique identifier of the target user", "type": [ "int" ], - "optional": false, - "name": "user_id", - "description": "Unique identifier of the target user" + "name": "user_id" } ], - "name": "declineChatJoinRequest", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "declineChatJoinRequest", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": false, + "description": "New chat photo, uploaded using multipart/form-data", "type": [ "file" ], - "optional": false, - "name": "photo", - "description": "New chat photo, uploaded using multipart/form-data" + "name": "photo" } ], - "name": "setChatPhoto", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "setChatPhoto", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" } ], - "name": "deleteChatPhoto", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "deleteChatPhoto", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": false, + "description": "New chat title, 1-128 characters", "type": [ "str" ], - "optional": false, - "name": "title", - "description": "New chat title, 1-128 characters" + "name": "title" } ], - "name": "setChatTitle", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "setChatTitle", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": true, + "description": "New chat description, 0-255 characters", "type": [ "str" ], - "optional": true, - "name": "description", - "description": "New chat description, 0-255 characters" + "name": "description" } ], - "name": "setChatDescription", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "setChatDescription", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message will be pinned", "type": [ - "int", "str" ], + "name": "business_connection_id" + }, + { "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": [ + "int", + "str" + ], + "name": "chat_id" }, { + "optional": false, + "description": "Identifier of a message to pin", "type": [ "int" ], - "optional": false, - "name": "message_id", - "description": "Identifier of a message to pin" + "name": "message_id" }, { + "optional": true, + "description": "Pass True if it is not necessary to send a notification to all chat members about the new pinned message. Notifications are always disabled in channels and private chats.", "type": [ "bool" ], - "optional": true, - "name": "disable_notification", - "description": "Pass True if it is not necessary to send a notification to all chat members about the new pinned message. Notifications are always disabled in channels and private chats." + "name": "disable_notification" } ], - "name": "pinChatMessage", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "pinChatMessage", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message will be unpinned", "type": [ - "int", "str" ], + "name": "business_connection_id" + }, + { "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": [ + "int", + "str" + ], + "name": "chat_id" }, { + "optional": true, + "description": "Identifier of the message to unpin. Required if business_connection_id is specified. If not specified, the most recent pinned message (by sending date) will be unpinned.", "type": [ "int" ], - "optional": true, - "name": "message_id", - "description": "Identifier of a message to unpin. If not specified, the most recent pinned message (by sending date) will be unpinned." + "name": "message_id" } ], - "name": "unpinChatMessage", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "unpinChatMessage", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" } ], - "name": "unpinAllChatMessages", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "unpinAllChatMessages", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)" + "name": "chat_id" } ], + "description": "Use this method for your bot to leave a group, supergroup or channel. Returns True on success.", + "type": "post", "name": "leaveChat", - "description": "Use this method for your bot to leave a group, supergroup or channel. Returns True on success." + "return": [ + "true" + ] }, { - "type": "get", - "return": [ - "Chat" - ], "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)" + "name": "chat_id" } ], + "description": "Use this method to get up-to-date information about the chat. Returns a ChatFullInfo object on success.", + "type": "get", "name": "getChat", - "description": "Use this method to get up to date information about the chat. Returns a Chat object on success." + "return": [ + "ChatFullInfo" + ] }, { - "type": "get", - "return": [ - [ - "array", - [ - "ChatMember" - ] - ] - ], "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)" + "name": "chat_id" } ], + "description": "Use this method to get a list of administrators in a chat, which aren't bots. Returns an Array of ChatMember objects.", + "type": "get", "name": "getChatAdministrators", - "description": "Use this method to get a list of administrators in a chat, which aren't bots. Returns an Array of ChatMember objects." + "return": [ + [ + "array", + [ + "ChatMember" + ] + ] + ] }, { - "type": "get", - "return": [ - "int" - ], "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)" + "name": "chat_id" } ], + "description": "Use this method to get the number of members in a chat. Returns Int on success.", + "type": "get", "name": "getChatMemberCount", - "description": "Use this method to get the number of members in a chat. Returns Int on success." + "return": [ + "int" + ] }, { - "type": "get", - "return": [ - "ChatMember" - ], "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": false, + "description": "Unique identifier of the target user", "type": [ "int" ], - "optional": false, - "name": "user_id", - "description": "Unique identifier of the target user" + "name": "user_id" } ], + "description": "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.", + "type": "get", "name": "getChatMember", - "description": "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." + "return": [ + "ChatMember" + ] }, { - "type": "post", - "return": [ - "true" - ], "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + "name": "chat_id" }, { + "optional": false, + "description": "Name of the sticker set to be set as the group sticker set", "type": [ "str" ], - "optional": false, - "name": "sticker_set_name", - "description": "Name of the sticker set to be set as the group sticker set" + "name": "sticker_set_name" } ], - "name": "setChatStickerSet", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "setChatStickerSet", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + "name": "chat_id" } ], + "description": "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.", + "type": "post", "name": "deleteChatStickerSet", - "description": "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." + "return": [ + "true" + ] }, { - "type": "get", - "return": [ - [ - "array", - [ - "Sticker" - ] - ] - ], "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + "name": "chat_id" }, { + "optional": false, + "description": "Topic name, 1-128 characters", "type": [ "str" ], - "optional": false, - "name": "name", - "description": "Topic name, 1-128 characters" + "name": "name" }, { + "optional": true, + "description": "Color of the topic icon in RGB format. Currently, must be one of 7322096 (0x6FB9F0), 16766590 (0xFFD67E), 13338331 (0xCB86DB), 9367192 (0x8EEE98), 16749490 (0xFF93B2), or 16478047 (0xFB6F5F)", "type": [ "int" ], - "optional": true, - "name": "icon_color", - "description": "Color of the topic icon in RGB format. Currently, must be one of 7322096 (0x6FB9F0), 16766590 (0xFFD67E), 13338331 (0xCB86DB), 9367192 (0x8EEE98), 16749490 (0xFF93B2), or 16478047 (0xFB6F5F)" + "name": "icon_color" }, { + "optional": true, + "description": "Unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers.", "type": [ "str" ], - "optional": true, - "name": "icon_custom_emoji_id", - "description": "Unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers." + "name": "icon_custom_emoji_id" } ], + "description": "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.", + "type": "get", "name": "getForumTopicIconStickers", - "description": "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." + "return": [ + [ + "array", + [ + "Sticker" + ] + ] + ] }, { - "type": "post", - "return": [ - "ForumTopic" - ], "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + "name": "chat_id" }, { + "optional": false, + "description": "Topic name, 1-128 characters", "type": [ "str" ], - "optional": false, - "name": "name", - "description": "Topic name, 1-128 characters" + "name": "name" }, { + "optional": true, + "description": "Color of the topic icon in RGB format. Currently, must be one of 7322096 (0x6FB9F0), 16766590 (0xFFD67E), 13338331 (0xCB86DB), 9367192 (0x8EEE98), 16749490 (0xFF93B2), or 16478047 (0xFB6F5F)", "type": [ "int" ], - "optional": true, - "name": "icon_color", - "description": "Color of the topic icon in RGB format. Currently, must be one of 7322096 (0x6FB9F0), 16766590 (0xFFD67E), 13338331 (0xCB86DB), 9367192 (0x8EEE98), 16749490 (0xFF93B2), or 16478047 (0xFB6F5F)" + "name": "icon_color" }, { + "optional": true, + "description": "Unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers.", "type": [ "str" ], - "optional": true, - "name": "icon_custom_emoji_id", - "description": "Unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers." + "name": "icon_custom_emoji_id" } ], + "description": "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.", + "type": "post", "name": "createForumTopic", - "description": "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." + "return": [ + "ForumTopic" + ] }, { - "type": "post", - "return": [ - "true" - ], "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + "name": "chat_id" }, { + "optional": false, + "description": "Unique identifier for the target message thread of the forum topic", "type": [ "int" ], - "optional": false, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread of the forum topic" + "name": "message_thread_id" }, { + "optional": true, + "description": "New topic name, 0-128 characters. If not specified or empty, the current name of the topic will be kept", "type": [ "str" ], - "optional": true, - "name": "name", - "description": "New topic name, 0-128 characters. If not specified or empty, the current name of the topic will be kept" + "name": "name" }, { + "optional": true, + "description": "New unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers. Pass an empty string to remove the icon. If not specified, the current icon will be kept", "type": [ "str" ], - "optional": true, - "name": "icon_custom_emoji_id", - "description": "New unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers. Pass an empty string to remove the icon. If not specified, the current icon will be kept" + "name": "icon_custom_emoji_id" } ], - "name": "editForumTopic", - "description": "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." - }, - { + "description": "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 the can_manage_topics administrator rights, unless it is the creator of the topic. Returns True on success.", "type": "post", + "name": "editForumTopic", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + "name": "chat_id" }, { + "optional": false, + "description": "Unique identifier for the target message thread of the forum topic", "type": [ "int" ], - "optional": false, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread of the forum topic" + "name": "message_thread_id" } ], - "name": "closeForumTopic", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "closeForumTopic", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + "name": "chat_id" }, { + "optional": false, + "description": "Unique identifier for the target message thread of the forum topic", "type": [ "int" ], - "optional": false, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread of the forum topic" + "name": "message_thread_id" } ], - "name": "reopenForumTopic", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "reopenForumTopic", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + "name": "chat_id" }, { + "optional": false, + "description": "Unique identifier for the target message thread of the forum topic", "type": [ "int" ], - "optional": false, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread of the forum topic" + "name": "message_thread_id" } ], - "name": "deleteForumTopic", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "deleteForumTopic", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + "name": "chat_id" }, { + "optional": false, + "description": "Unique identifier for the target message thread of the forum topic", "type": [ "int" ], - "optional": false, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread of the forum topic" + "name": "message_thread_id" } ], - "name": "unpinAllForumTopicMessages", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "unpinAllForumTopicMessages", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + "name": "chat_id" }, { + "optional": false, + "description": "New topic name, 1-128 characters", "type": [ "str" ], - "optional": false, - "name": "name", - "description": "New topic name, 1-128 characters" + "name": "name" } ], - "name": "editGeneralForumTopic", - "description": "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." - }, - { + "description": "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 the can_manage_topics administrator rights. Returns True on success.", "type": "post", + "name": "editGeneralForumTopic", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + "name": "chat_id" } ], - "name": "closeGeneralForumTopic", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "closeGeneralForumTopic", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + "name": "chat_id" } ], - "name": "reopenGeneralForumTopic", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "reopenGeneralForumTopic", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + "name": "chat_id" } ], - "name": "hideGeneralForumTopic", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "hideGeneralForumTopic", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + "name": "chat_id" } ], - "name": "unhideGeneralForumTopic", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "unhideGeneralForumTopic", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + "name": "chat_id" } ], - "name": "unpinAllGeneralForumTopicMessages", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "unpinAllGeneralForumTopicMessages", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the query to be answered", "type": [ "str" ], - "optional": false, - "name": "callback_query_id", - "description": "Unique identifier for the query to be answered" + "name": "callback_query_id" }, { + "optional": true, + "description": "Text of the notification. If not specified, nothing will be shown to the user, 0-200 characters", "type": [ "str" ], - "optional": true, - "name": "text", - "description": "Text of the notification. If not specified, nothing will be shown to the user, 0-200 characters" + "name": "text" }, { + "optional": true, + "description": "If True, an alert will be shown by the client instead of a notification at the top of the chat screen. Defaults to false.", "type": [ "bool" ], - "optional": true, - "name": "show_alert", - "description": "If True, an alert will be shown by the client instead of a notification at the top of the chat screen. Defaults to false." + "name": "show_alert" }, { + "optional": true, + "description": "URL that will be opened by the user's client. If you have created a Game and accepted the conditions via @BotFather, specify the URL that opens your game - note that this will only work if the query comes from a callback_game button.\n\nOtherwise, you may use links like t.me/your_bot?start=XXXX that open your bot with a parameter.", "type": [ "str" ], - "optional": true, - "name": "url", - "description": "URL that will be opened by the user's client. If you have created a Game and accepted the conditions via @BotFather, specify the URL that opens your game - note that this will only work if the query comes from a callback_game button.\n\nOtherwise, you may use links like t.me/your_bot?start=XXXX that open your bot with a parameter." + "name": "url" }, { + "optional": true, + "description": "The maximum amount of time in seconds that the result of the callback query may be cached client-side. Telegram apps will support caching starting in version 3.14. Defaults to 0.", "type": [ "int" ], - "optional": true, - "name": "cache_time", - "description": "The maximum amount of time in seconds that the result of the callback query may be cached client-side. Telegram apps will support caching starting in version 3.14. Defaults to 0." + "name": "cache_time" } ], + "description": "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.", + "type": "post", "name": "answerCallbackQuery", - "description": "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." + "return": [ + "true" + ] }, { - "type": "get", - "return": [ - "UserChatBoosts" - ], "params": [ { + "optional": false, + "description": "Unique identifier for the chat or username of the channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the chat or username of the channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": false, + "description": "Unique identifier of the target user", "type": [ "int" ], - "optional": false, - "name": "user_id", - "description": "Unique identifier of the target user" + "name": "user_id" } ], + "description": "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.", + "type": "get", "name": "getUserChatBoosts", - "description": "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." + "return": [ + "UserChatBoosts" + ] }, { - "type": "get", - "return": [ - "BusinessConnection" - ], "params": [ { + "optional": false, + "description": "Unique identifier of the business connection", "type": [ "str" ], - "optional": false, - "name": "business_connection_id", - "description": "Unique identifier of the business connection" + "name": "business_connection_id" } ], + "description": "Use this method to get information about the connection of the bot with a business account. Returns a BusinessConnection object on success.", + "type": "get", "name": "getBusinessConnection", - "description": "Use this method to get information about the connection of the bot with a business account. Returns a BusinessConnection object on success." + "return": [ + "BusinessConnection" + ] }, { - "type": "post", - "return": [ - "true" - ], "params": [ { + "optional": false, + "description": "A JSON-serialized list of bot commands to be set as the list of the bot's commands. At most 100 commands can be specified.", "type": [ [ "array", @@ -13853,355 +15867,363 @@ ] ] ], - "optional": false, - "name": "commands", - "description": "A JSON-serialized list of bot commands to be set as the list of the bot's commands. At most 100 commands can be specified." + "name": "commands" }, { + "optional": true, + "description": "A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.", "type": [ "BotCommandScope" ], - "optional": true, - "name": "scope", - "description": "A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault." + "name": "scope" }, { + "optional": true, + "description": "A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands", "type": [ "str" ], - "optional": true, - "name": "language_code", - "description": "A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands" + "name": "language_code" } ], - "name": "setMyCommands", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "setMyCommands", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": true, + "description": "A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.", "type": [ "BotCommandScope" ], - "optional": true, - "name": "scope", - "description": "A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault." + "name": "scope" }, { + "optional": true, + "description": "A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands", "type": [ "str" ], - "optional": true, - "name": "language_code", - "description": "A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands" + "name": "language_code" } ], + "description": "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.", + "type": "post", "name": "deleteMyCommands", - "description": "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." + "return": [ + "true" + ] }, { - "type": "get", - "return": [ - [ - "array", - [ - "BotCommand" - ] - ] - ], "params": [ { + "optional": true, + "description": "A JSON-serialized object, describing scope of users. Defaults to BotCommandScopeDefault.", "type": [ "BotCommandScope" ], - "optional": true, - "name": "scope", - "description": "A JSON-serialized object, describing scope of users. Defaults to BotCommandScopeDefault." + "name": "scope" }, { + "optional": true, + "description": "A two-letter ISO 639-1 language code or an empty string", "type": [ "str" ], - "optional": true, - "name": "language_code", - "description": "A two-letter ISO 639-1 language code or an empty string" + "name": "language_code" } ], + "description": "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.", + "type": "get", "name": "getMyCommands", - "description": "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." + "return": [ + [ + "array", + [ + "BotCommand" + ] + ] + ] }, { - "type": "post", - "return": [ - "true" - ], "params": [ { + "optional": true, + "description": "New bot name; 0-64 characters. Pass an empty string to remove the dedicated name for the given language.", "type": [ "str" ], - "optional": true, - "name": "name", - "description": "New bot name; 0-64 characters. Pass an empty string to remove the dedicated name for the given language." + "name": "name" }, { + "optional": true, + "description": "A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose language there is no dedicated name.", "type": [ "str" ], - "optional": true, - "name": "language_code", - "description": "A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose language there is no dedicated name." + "name": "language_code" } ], + "description": "Use this method to change the bot's name. Returns True on success.", + "type": "post", "name": "setMyName", - "description": "Use this method to change the bot's name. Returns True on success." + "return": [ + "true" + ] }, { - "type": "get", - "return": [ - "BotName" - ], "params": [ { + "optional": true, + "description": "A two-letter ISO 639-1 language code or an empty string", "type": [ "str" ], - "optional": true, - "name": "language_code", - "description": "A two-letter ISO 639-1 language code or an empty string" + "name": "language_code" } ], + "description": "Use this method to get the current bot name for the given user language. Returns BotName on success.", + "type": "get", "name": "getMyName", - "description": "Use this method to get the current bot name for the given user language. Returns BotName on success." + "return": [ + "BotName" + ] }, { - "type": "post", - "return": [ - "true" - ], "params": [ { + "optional": true, + "description": "New bot description; 0-512 characters. Pass an empty string to remove the dedicated description for the given language.", "type": [ "str" ], - "optional": true, - "name": "description", - "description": "New bot description; 0-512 characters. Pass an empty string to remove the dedicated description for the given language." + "name": "description" }, { + "optional": true, + "description": "A two-letter ISO 639-1 language code. If empty, the description will be applied to all users for whose language there is no dedicated description.", "type": [ "str" ], - "optional": true, - "name": "language_code", - "description": "A two-letter ISO 639-1 language code. If empty, the description will be applied to all users for whose language there is no dedicated description." + "name": "language_code" } ], + "description": "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.", + "type": "post", "name": "setMyDescription", - "description": "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." + "return": [ + "true" + ] }, { - "type": "get", - "return": [ - "BotDescription" - ], "params": [ { + "optional": true, + "description": "A two-letter ISO 639-1 language code or an empty string", "type": [ "str" ], - "optional": true, - "name": "language_code", - "description": "A two-letter ISO 639-1 language code or an empty string" + "name": "language_code" } ], + "description": "Use this method to get the current bot description for the given user language. Returns BotDescription on success.", + "type": "get", "name": "getMyDescription", - "description": "Use this method to get the current bot description for the given user language. Returns BotDescription on success." + "return": [ + "BotDescription" + ] }, { - "type": "post", - "return": [ - "true" - ], "params": [ { + "optional": true, + "description": "New short description for the bot; 0-120 characters. Pass an empty string to remove the dedicated short description for the given language.", "type": [ "str" ], - "optional": true, - "name": "short_description", - "description": "New short description for the bot; 0-120 characters. Pass an empty string to remove the dedicated short description for the given language." + "name": "short_description" }, { + "optional": true, + "description": "A two-letter ISO 639-1 language code. If empty, the short description will be applied to all users for whose language there is no dedicated short description.", "type": [ "str" ], - "optional": true, - "name": "language_code", - "description": "A two-letter ISO 639-1 language code. If empty, the short description will be applied to all users for whose language there is no dedicated short description." + "name": "language_code" } ], + "description": "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.", + "type": "post", "name": "setMyShortDescription", - "description": "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." + "return": [ + "true" + ] }, { - "type": "get", - "return": [ - "BotShortDescription" - ], "params": [ { + "optional": true, + "description": "A two-letter ISO 639-1 language code or an empty string", "type": [ "str" ], - "optional": true, - "name": "language_code", - "description": "A two-letter ISO 639-1 language code or an empty string" + "name": "language_code" } ], + "description": "Use this method to get the current bot short description for the given user language. Returns BotShortDescription on success.", + "type": "get", "name": "getMyShortDescription", - "description": "Use this method to get the current bot short description for the given user language. Returns BotShortDescription on success." + "return": [ + "BotShortDescription" + ] }, { - "type": "post", - "return": [ - "true" - ], "params": [ { + "optional": true, + "description": "Unique identifier for the target private chat. If not specified, default bot's menu button will be changed", "type": [ "int" ], - "optional": true, - "name": "chat_id", - "description": "Unique identifier for the target private chat. If not specified, default bot's menu button will be changed" + "name": "chat_id" }, { + "optional": true, + "description": "A JSON-serialized object for the bot's new menu button. Defaults to MenuButtonDefault", "type": [ "MenuButton" ], - "optional": true, - "name": "menu_button", - "description": "A JSON-serialized object for the bot's new menu button. Defaults to MenuButtonDefault" + "name": "menu_button" } ], + "description": "Use this method to change the bot's menu button in a private chat, or the default menu button. Returns True on success.", + "type": "post", "name": "setChatMenuButton", - "description": "Use this method to change the bot's menu button in a private chat, or the default menu button. Returns True on success." + "return": [ + "true" + ] }, { - "type": "get", - "return": [ - "MenuButton" - ], "params": [ { + "optional": true, + "description": "Unique identifier for the target private chat. If not specified, default bot's menu button will be returned", "type": [ "int" ], - "optional": true, - "name": "chat_id", - "description": "Unique identifier for the target private chat. If not specified, default bot's menu button will be returned" + "name": "chat_id" } ], + "description": "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.", + "type": "get", "name": "getChatMenuButton", - "description": "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." + "return": [ + "MenuButton" + ] }, { - "type": "post", - "return": [ - "true" - ], "params": [ { + "optional": true, + "description": "A JSON-serialized object describing new default administrator rights. If not specified, the default administrator rights will be cleared.", "type": [ "ChatAdministratorRights" ], - "optional": true, - "name": "rights", - "description": "A JSON-serialized object describing new default administrator rights. If not specified, the default administrator rights will be cleared." + "name": "rights" }, { + "optional": true, + "description": "Pass True to change the default administrator rights of the bot in channels. Otherwise, the default administrator rights of the bot for groups and supergroups will be changed.", "type": [ "bool" ], - "optional": true, - "name": "for_channels", - "description": "Pass True to change the default administrator rights of the bot in channels. Otherwise, the default administrator rights of the bot for groups and supergroups will be changed." + "name": "for_channels" } ], + "description": "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.", + "type": "post", "name": "setMyDefaultAdministratorRights", - "description": "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." + "return": [ + "true" + ] }, { - "type": "get", - "return": [ - "ChatAdministratorRights" - ], "params": [ { + "optional": true, + "description": "Pass True to get default administrator rights of the bot in channels. Otherwise, default administrator rights of the bot for groups and supergroups will be returned.", "type": [ "bool" ], - "optional": true, - "name": "for_channels", - "description": "Pass True to get default administrator rights of the bot in channels. Otherwise, default administrator rights of the bot for groups and supergroups will be returned." + "name": "for_channels" } ], + "description": "Use this method to get the current default administrator rights of the bot. Returns ChatAdministratorRights on success.", + "type": "get", "name": "getMyDefaultAdministratorRights", - "description": "Use this method to get the current default administrator rights of the bot. Returns ChatAdministratorRights on success." + "return": [ + "ChatAdministratorRights" + ] }, { - "type": "post", - "return": [ - "Message" - ], "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message to be edited was sent", "type": [ - "int", "str" ], + "name": "business_connection_id" + }, + { "optional": true, - "name": "chat_id", - "description": "Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "description": "Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": [ + "int", + "str" + ], + "name": "chat_id" }, { + "optional": true, + "description": "Required if inline_message_id is not specified. Identifier of the message to edit", "type": [ "int" ], - "optional": true, - "name": "message_id", - "description": "Required if inline_message_id is not specified. Identifier of the message to edit" + "name": "message_id" }, { + "optional": true, + "description": "Required if chat_id and message_id are not specified. Identifier of the inline message", "type": [ "str" ], - "optional": true, - "name": "inline_message_id", - "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" + "name": "inline_message_id" }, { + "optional": false, + "description": "New text of the message, 1-4096 characters after entities parsing", "type": [ "str" ], - "optional": false, - "name": "text", - "description": "New text of the message, 1-4096 characters after entities parsing" + "name": "text" }, { + "optional": true, + "description": "Mode for parsing entities in the message text. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Mode for parsing entities in the message text. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode", "type": [ [ "array", @@ -14210,78 +16232,86 @@ ] ] ], - "optional": true, - "name": "entities", - "description": "A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode" + "name": "entities" }, { + "optional": true, + "description": "Link preview generation options for the message", "type": [ "LinkPreviewOptions" ], - "optional": true, - "name": "link_preview_options", - "description": "Link preview generation options for the message" + "name": "link_preview_options" }, { + "optional": true, + "description": "A JSON-serialized object for an inline keyboard.", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "A JSON-serialized object for an inline keyboard." + "name": "reply_markup" } ], - "name": "editMessageText", - "description": "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." - }, - { + "description": "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. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.", "type": "post", + "name": "editMessageText", "return": [ "Message" - ], + ] + }, + { "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message to be edited was sent", + "type": [ + "str" + ], + "name": "business_connection_id" + }, + { + "optional": true, + "description": "Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": true, - "name": "chat_id", - "description": "Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": true, + "description": "Required if inline_message_id is not specified. Identifier of the message to edit", "type": [ "int" ], - "optional": true, - "name": "message_id", - "description": "Required if inline_message_id is not specified. Identifier of the message to edit" + "name": "message_id" }, { + "optional": true, + "description": "Required if chat_id and message_id are not specified. Identifier of the inline message", "type": [ "str" ], - "optional": true, - "name": "inline_message_id", - "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" + "name": "inline_message_id" }, { + "optional": true, + "description": "New caption of the message, 0-1024 characters after entities parsing", "type": [ "str" ], - "optional": true, - "name": "caption", - "description": "New caption of the message, 0-1024 characters after entities parsing" + "name": "caption" }, { + "optional": true, + "description": "Mode for parsing entities in the message caption. See formatting options for more details.", "type": [ "str" ], - "optional": true, - "name": "parse_mode", - "description": "Mode for parsing entities in the message caption. See formatting options for more details." + "name": "parse_mode" }, { + "optional": true, + "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode", "type": [ [ "array", @@ -14290,321 +16320,377 @@ ] ] ], + "name": "caption_entities" + }, + { "optional": true, - "name": "caption_entities", - "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" + "description": "Pass True, if the caption must be shown above the message media. Supported only for animation, photo and video messages.", + "type": [ + "bool" + ], + "name": "show_caption_above_media" }, { + "optional": true, + "description": "A JSON-serialized object for an inline keyboard.", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "A JSON-serialized object for an inline keyboard." + "name": "reply_markup" } ], - "name": "editMessageCaption", - "description": "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." - }, - { + "description": "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. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.", "type": "post", + "name": "editMessageCaption", "return": [ "Message" - ], + ] + }, + { "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message to be edited was sent", "type": [ - "int", "str" ], + "name": "business_connection_id" + }, + { "optional": true, - "name": "chat_id", - "description": "Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "description": "Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": [ + "int", + "str" + ], + "name": "chat_id" }, { + "optional": true, + "description": "Required if inline_message_id is not specified. Identifier of the message to edit", "type": [ "int" ], - "optional": true, - "name": "message_id", - "description": "Required if inline_message_id is not specified. Identifier of the message to edit" + "name": "message_id" }, { + "optional": true, + "description": "Required if chat_id and message_id are not specified. Identifier of the inline message", "type": [ "str" ], - "optional": true, - "name": "inline_message_id", - "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" + "name": "inline_message_id" }, { + "optional": false, + "description": "A JSON-serialized object for a new media content of the message", "type": [ "InputMedia" ], - "optional": false, - "name": "media", - "description": "A JSON-serialized object for a new media content of the message" + "name": "media" }, { + "optional": true, + "description": "A JSON-serialized object for a new inline keyboard.", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "A JSON-serialized object for a new inline keyboard." + "name": "reply_markup" } ], - "name": "editMessageMedia", - "description": "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." - }, - { + "description": "Use this method to edit animation, audio, document, photo, or video messages, or to add media to text 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. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.", "type": "post", + "name": "editMessageMedia", "return": [ "Message" - ], + ] + }, + { "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message to be edited was sent", "type": [ - "int", "str" ], + "name": "business_connection_id" + }, + { "optional": true, - "name": "chat_id", - "description": "Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "description": "Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": [ + "int", + "str" + ], + "name": "chat_id" }, { + "optional": true, + "description": "Required if inline_message_id is not specified. Identifier of the message to edit", "type": [ "int" ], - "optional": true, - "name": "message_id", - "description": "Required if inline_message_id is not specified. Identifier of the message to edit" + "name": "message_id" }, { + "optional": true, + "description": "Required if chat_id and message_id are not specified. Identifier of the inline message", "type": [ "str" ], - "optional": true, - "name": "inline_message_id", - "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" + "name": "inline_message_id" }, { + "optional": false, + "description": "Latitude of new location", "type": [ "float" ], - "optional": false, - "name": "latitude", - "description": "Latitude of new location" + "name": "latitude" }, { + "optional": false, + "description": "Longitude of new location", "type": [ "float" ], - "optional": false, - "name": "longitude", - "description": "Longitude of new location" + "name": "longitude" }, { + "optional": true, + "description": "New period in seconds during which the location can be updated, starting from the message send date. If 0x7FFFFFFF is specified, then the location can be updated forever. Otherwise, the new value must not exceed the current live_period by more than a day, and the live location expiration date must remain within the next 90 days. If not specified, then live_period remains unchanged", "type": [ - "float" + "int" ], + "name": "live_period" + }, + { "optional": true, - "name": "horizontal_accuracy", - "description": "The radius of uncertainty for the location, measured in meters; 0-1500" + "description": "The radius of uncertainty for the location, measured in meters; 0-1500", + "type": [ + "float" + ], + "name": "horizontal_accuracy" }, { + "optional": true, + "description": "Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.", "type": [ "int" ], - "optional": true, - "name": "heading", - "description": "Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified." + "name": "heading" }, { + "optional": true, + "description": "The maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.", "type": [ "int" ], - "optional": true, - "name": "proximity_alert_radius", - "description": "The maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified." + "name": "proximity_alert_radius" }, { + "optional": true, + "description": "A JSON-serialized object for a new inline keyboard.", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "A JSON-serialized object for a new inline keyboard." + "name": "reply_markup" } ], + "description": "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.", + "type": "post", "name": "editMessageLiveLocation", - "description": "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." + "return": [ + "Message" + ] }, { - "type": "post", - "return": [ - "Message", - "true" - ], "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message to be edited was sent", "type": [ - "int", "str" ], + "name": "business_connection_id" + }, + { "optional": true, - "name": "chat_id", - "description": "Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "description": "Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": [ + "int", + "str" + ], + "name": "chat_id" }, { + "optional": true, + "description": "Required if inline_message_id is not specified. Identifier of the message with live location to stop", "type": [ "int" ], - "optional": true, - "name": "message_id", - "description": "Required if inline_message_id is not specified. Identifier of the message with live location to stop" + "name": "message_id" }, { + "optional": true, + "description": "Required if chat_id and message_id are not specified. Identifier of the inline message", "type": [ "str" ], - "optional": true, - "name": "inline_message_id", - "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" + "name": "inline_message_id" }, { + "optional": true, + "description": "A JSON-serialized object for a new inline keyboard.", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "A JSON-serialized object for a new inline keyboard." + "name": "reply_markup" } ], + "description": "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.", + "type": "post", "name": "stopMessageLiveLocation", - "description": "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." + "return": [ + "Message", + "true" + ] }, { - "type": "post", - "return": [ - "Message" - ], "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message to be edited was sent", "type": [ - "int", "str" ], + "name": "business_connection_id" + }, + { "optional": true, - "name": "chat_id", - "description": "Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "description": "Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": [ + "int", + "str" + ], + "name": "chat_id" }, { + "optional": true, + "description": "Required if inline_message_id is not specified. Identifier of the message to edit", "type": [ "int" ], - "optional": true, - "name": "message_id", - "description": "Required if inline_message_id is not specified. Identifier of the message to edit" + "name": "message_id" }, { + "optional": true, + "description": "Required if chat_id and message_id are not specified. Identifier of the inline message", "type": [ "str" ], - "optional": true, - "name": "inline_message_id", - "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" + "name": "inline_message_id" }, { + "optional": true, + "description": "A JSON-serialized object for an inline keyboard.", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "A JSON-serialized object for an inline keyboard." + "name": "reply_markup" } ], + "description": "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. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.", + "type": "post", "name": "editMessageReplyMarkup", - "description": "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." + "return": [ + "Message" + ] }, { - "type": "post", - "return": [ - "Poll" - ], "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message to be edited was sent", "type": [ - "int", "str" ], + "name": "business_connection_id" + }, + { "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": [ + "int", + "str" + ], + "name": "chat_id" }, { + "optional": false, + "description": "Identifier of the original message with the poll", "type": [ "int" ], - "optional": false, - "name": "message_id", - "description": "Identifier of the original message with the poll" + "name": "message_id" }, { + "optional": true, + "description": "A JSON-serialized object for a new message inline keyboard.", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "A JSON-serialized object for a new message inline keyboard." + "name": "reply_markup" } ], + "description": "Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned.", + "type": "post", "name": "stopPoll", - "description": "Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned." + "return": [ + "Poll" + ] }, { - "type": "post", - "return": [ - "true" - ], "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": false, + "description": "Identifier of the message to delete", "type": [ "int" ], - "optional": false, - "name": "message_id", - "description": "Identifier of the message to delete" + "name": "message_id" } ], - "name": "deleteMessage", - "description": "Use this method to delete a message, including service messages, with the following limitations:\n- A message can only be deleted if it was sent less than 48 hours ago.\n- Service messages about a supergroup, channel, or forum topic creation can't be deleted.\n- A dice message in a private chat can only be deleted if it was sent more than 24 hours ago.\n- Bots can delete outgoing messages in private chats, groups, and supergroups.\n- Bots can delete incoming messages in private chats.\n- Bots granted can_post_messages permissions can delete outgoing messages in channels.\n- If the bot is an administrator of a group, it can delete any message there.\n- If the bot has can_delete_messages permission in a supergroup or a channel, it can delete any message there.\nReturns True on success." - }, - { + "description": "Use this method to delete a message, including service messages, with the following limitations:\n- A message can only be deleted if it was sent less than 48 hours ago.\n- Service messages about a supergroup, channel, or forum topic creation can't be deleted.\n- A dice message in a private chat can only be deleted if it was sent more than 24 hours ago.\n- Bots can delete outgoing messages in private chats, groups, and supergroups.\n- Bots can delete incoming messages in private chats.\n- Bots granted can_post_messages permissions can delete outgoing messages in channels.\n- If the bot is an administrator of a group, it can delete any message there.\n- If the bot has can_delete_messages permission in a supergroup or a channel, it can delete any message there.\nReturns True on success.", "type": "post", + "name": "deleteMessage", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": false, + "description": "A JSON-serialized list of 1-100 identifiers of messages to delete. See deleteMessage for limitations on which messages can be deleted", "type": [ [ "array", @@ -14613,131 +16699,142 @@ ] ] ], - "optional": false, - "name": "message_ids", - "description": "A JSON-serialized list of 1-100 identifiers of messages to delete. See deleteMessage for limitations on which messages can be deleted" + "name": "message_ids" } ], + "description": "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.", + "type": "post", "name": "deleteMessages", - "description": "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." + "return": [ + "true" + ] }, { - "type": "post", - "return": [ - "Message" - ], "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message will be sent", "type": [ "str" ], - "optional": true, - "name": "business_connection_id", - "description": "Unique identifier of the business connection on behalf of which the message will be sent" + "name": "business_connection_id" }, { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": true, + "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only", "type": [ "int" ], - "optional": true, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only" + "name": "message_thread_id" }, { + "optional": false, + "description": "Sticker to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a .WEBP sticker from the Internet, or upload a new .WEBP, .TGS, or .WEBM sticker using multipart/form-data. More information on Sending Files ». Video and animated stickers can't be sent via an HTTP URL.", "type": [ "file", "str" ], - "optional": false, - "name": "sticker", - "description": "Sticker to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a .WEBP sticker from the Internet, or upload a new .WEBP, .TGS, or .WEBM sticker using multipart/form-data. More information on Sending Files ». Video and animated stickers can't be sent via an HTTP URL." + "name": "sticker" }, { + "optional": true, + "description": "Emoji associated with the sticker; only for just uploaded stickers", "type": [ "str" ], - "optional": true, - "name": "emoji", - "description": "Emoji associated with the sticker; only for just uploaded stickers" + "name": "emoji" }, { + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound.", "type": [ "bool" ], + "name": "disable_notification" + }, + { "optional": true, - "name": "disable_notification", - "description": "Sends the message silently. Users will receive a notification with no sound." + "description": "Protects the contents of the sent message from forwarding and saving", + "type": [ + "bool" + ], + "name": "protect_content" }, { + "optional": true, + "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance", "type": [ "bool" ], + "name": "allow_paid_broadcast" + }, + { "optional": true, - "name": "protect_content", - "description": "Protects the contents of the sent message from forwarding and saving" + "description": "Unique identifier of the message effect to be added to the message; for private chats only", + "type": [ + "str" + ], + "name": "message_effect_id" }, { + "optional": true, + "description": "Description of the message to reply to", "type": [ "ReplyParameters" ], - "optional": true, - "name": "reply_parameters", - "description": "Description of the message to reply to" + "name": "reply_parameters" }, { + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user", "type": [ "InlineKeyboardMarkup", "ReplyKeyboardMarkup", "ReplyKeyboardRemove", "ForceReply" ], - "optional": true, - "name": "reply_markup", - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account." + "name": "reply_markup" } ], + "description": "Use this method to send static .WEBP, animated .TGS, or video .WEBM stickers. On success, the sent Message is returned.", + "type": "post", "name": "sendSticker", - "description": "Use this method to send static .WEBP, animated .TGS, or video .WEBM stickers. On success, the sent Message is returned." + "return": [ + "Message" + ] }, { - "type": "get", - "return": [ - "StickerSet" - ], "params": [ { + "optional": false, + "description": "Name of the sticker set", "type": [ "str" ], - "optional": false, - "name": "name", - "description": "Name of the sticker set" + "name": "name" } ], + "description": "Use this method to get a sticker set. On success, a StickerSet object is returned.", + "type": "get", "name": "getStickerSet", - "description": "Use this method to get a sticker set. On success, a StickerSet object is returned." + "return": [ + "StickerSet" + ] }, { - "type": "get", - "return": [ - [ - "array", - [ - "Sticker" - ] - ] - ], "params": [ { + "optional": false, + "description": "A JSON-serialized list of custom emoji identifiers. At most 200 custom emoji identifiers can be specified.", "type": [ [ "array", @@ -14746,79 +16843,84 @@ ] ] ], - "optional": false, - "name": "custom_emoji_ids", - "description": "A JSON-serialized list of custom emoji identifiers. At most 200 custom emoji identifiers can be specified." + "name": "custom_emoji_ids" } ], + "description": "Use this method to get information about custom emoji stickers by their identifiers. Returns an Array of Sticker objects.", + "type": "get", "name": "getCustomEmojiStickers", - "description": "Use this method to get information about custom emoji stickers by their identifiers. Returns an Array of Sticker objects." + "return": [ + [ + "array", + [ + "Sticker" + ] + ] + ] }, { - "type": "post", - "return": [ - "File" - ], "params": [ { + "optional": false, + "description": "User identifier of sticker file owner", "type": [ "int" ], - "optional": false, - "name": "user_id", - "description": "User identifier of sticker file owner" + "name": "user_id" }, { + "optional": false, + "description": "A file with the sticker in .WEBP, .PNG, .TGS, or .WEBM format. See https://core.telegram.org/stickers for technical requirements. More information on Sending Files »", "type": [ "file" ], - "optional": false, - "name": "sticker", - "description": "A file with the sticker in .WEBP, .PNG, .TGS, or .WEBM format. See https://core.telegram.org/stickers for technical requirements. More information on Sending Files »" + "name": "sticker" }, { + "optional": false, + "description": "Format of the sticker, must be one of “static”, “animated”, “video”", "type": [ "str" ], - "optional": false, - "name": "sticker_format", - "description": "Format of the sticker, must be one of “static”, “animated”, “video”" + "name": "sticker_format" } ], + "description": "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.", + "type": "post", "name": "uploadStickerFile", - "description": "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." + "return": [ + "File" + ] }, { - "type": "post", - "return": [ - "true" - ], "params": [ { + "optional": false, + "description": "User identifier of created sticker set owner", "type": [ "int" ], - "optional": false, - "name": "user_id", - "description": "User identifier of created sticker set owner" + "name": "user_id" }, { + "optional": false, + "description": "Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only English letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in \"_by_\". is case insensitive. 1-64 characters.", "type": [ "str" ], - "optional": false, - "name": "name", - "description": "Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only English letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in \"_by_\". is case insensitive. 1-64 characters." + "name": "name" }, { + "optional": false, + "description": "Sticker set title, 1-64 characters", "type": [ "str" ], - "optional": false, - "name": "title", - "description": "Sticker set title, 1-64 characters" + "name": "title" }, { + "optional": false, + "description": "A JSON-serialized list of 1-50 initial stickers to be added to the sticker set", "type": [ [ "array", @@ -14827,165 +16929,165 @@ ] ] ], - "optional": false, - "name": "stickers", - "description": "A JSON-serialized list of 1-50 initial stickers to be added to the sticker set" + "name": "stickers" }, { + "optional": true, + "description": "Type of stickers in the set, pass “regular”, “mask”, or “custom_emoji”. By default, a regular sticker set is created.", "type": [ "str" ], - "optional": true, - "name": "sticker_type", - "description": "Type of stickers in the set, pass “regular”, “mask”, or “custom_emoji”. By default, a regular sticker set is created." + "name": "sticker_type" }, { + "optional": true, + "description": "Pass True if stickers in the sticker set must be repainted to the color of text when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context; for custom emoji sticker sets only", "type": [ "bool" ], - "optional": true, - "name": "needs_repainting", - "description": "Pass True if stickers in the sticker set must be repainted to the color of text when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context; for custom emoji sticker sets only" + "name": "needs_repainting" } ], - "name": "createNewStickerSet", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "createNewStickerSet", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "User identifier of sticker set owner", "type": [ "int" ], - "optional": false, - "name": "user_id", - "description": "User identifier of sticker set owner" + "name": "user_id" }, { + "optional": false, + "description": "Sticker set name", "type": [ "str" ], - "optional": false, - "name": "name", - "description": "Sticker set name" + "name": "name" }, { + "optional": false, + "description": "A JSON-serialized object with information about the added sticker. If exactly the same sticker had already been added to the set, then the set isn't changed.", "type": [ "InputSticker" ], - "optional": false, - "name": "sticker", - "description": "A JSON-serialized object with information about the added sticker. If exactly the same sticker had already been added to the set, then the set isn't changed." + "name": "sticker" } ], - "name": "addStickerToSet", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "addStickerToSet", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "File identifier of the sticker", "type": [ "str" ], - "optional": false, - "name": "sticker", - "description": "File identifier of the sticker" + "name": "sticker" }, { + "optional": false, + "description": "New sticker position in the set, zero-based", "type": [ "int" ], - "optional": false, - "name": "position", - "description": "New sticker position in the set, zero-based" + "name": "position" } ], - "name": "setStickerPositionInSet", - "description": "Use this method to move a sticker in a set created by the bot to a specific position. Returns True on success." - }, - { + "description": "Use this method to move a sticker in a set created by the bot to a specific position. Returns True on success.", "type": "post", + "name": "setStickerPositionInSet", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "File identifier of the sticker", "type": [ "str" ], - "optional": false, - "name": "sticker", - "description": "File identifier of the sticker" + "name": "sticker" } ], - "name": "deleteStickerFromSet", - "description": "Use this method to delete a sticker from a set created by the bot. Returns True on success." - }, - { + "description": "Use this method to delete a sticker from a set created by the bot. Returns True on success.", "type": "post", + "name": "deleteStickerFromSet", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "User identifier of the sticker set owner", "type": [ "int" ], - "optional": false, - "name": "user_id", - "description": "User identifier of the sticker set owner" + "name": "user_id" }, { + "optional": false, + "description": "Sticker set name", "type": [ "str" ], - "optional": false, - "name": "name", - "description": "Sticker set name" + "name": "name" }, { + "optional": false, + "description": "File identifier of the replaced sticker", "type": [ "str" ], - "optional": false, - "name": "old_sticker", - "description": "File identifier of the replaced sticker" + "name": "old_sticker" }, { + "optional": false, + "description": "A JSON-serialized object with information about the added sticker. If exactly the same sticker had already been added to the set, then the set remains unchanged.", "type": [ "InputSticker" ], - "optional": false, - "name": "sticker", - "description": "A JSON-serialized object with information about the added sticker. If exactly the same sticker had already been added to the set, then the set remains unchanged." + "name": "sticker" } ], - "name": "replaceStickerInSet", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "replaceStickerInSet", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "File identifier of the sticker", "type": [ "str" ], - "optional": false, - "name": "sticker", - "description": "File identifier of the sticker" + "name": "sticker" }, { + "optional": false, + "description": "A JSON-serialized list of 1-20 emoji associated with the sticker", "type": [ [ "array", @@ -14994,29 +17096,29 @@ ] ] ], - "optional": false, - "name": "emoji_list", - "description": "A JSON-serialized list of 1-20 emoji associated with the sticker" + "name": "emoji_list" } ], - "name": "setStickerEmojiList", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "setStickerEmojiList", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "File identifier of the sticker", "type": [ "str" ], - "optional": false, - "name": "sticker", - "description": "File identifier of the sticker" + "name": "sticker" }, { + "optional": true, + "description": "A JSON-serialized list of 0-20 search keywords for the sticker with total length of up to 64 characters", "type": [ [ "array", @@ -15025,168 +17127,278 @@ ] ] ], - "optional": true, - "name": "keywords", - "description": "A JSON-serialized list of 0-20 search keywords for the sticker with total length of up to 64 characters" + "name": "keywords" } ], - "name": "setStickerKeywords", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "setStickerKeywords", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "File identifier of the sticker", "type": [ "str" ], - "optional": false, - "name": "sticker", - "description": "File identifier of the sticker" + "name": "sticker" }, { + "optional": true, + "description": "A JSON-serialized object with the position where the mask should be placed on faces. Omit the parameter to remove the mask position.", "type": [ "MaskPosition" ], - "optional": true, - "name": "mask_position", - "description": "A JSON-serialized object with the position where the mask should be placed on faces. Omit the parameter to remove the mask position." + "name": "mask_position" } ], - "name": "setStickerMaskPosition", - "description": "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." - }, - { + "description": "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.", "type": "post", + "name": "setStickerMaskPosition", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Sticker set name", "type": [ "str" ], - "optional": false, - "name": "name", - "description": "Sticker set name" + "name": "name" }, { + "optional": false, + "description": "Sticker set title, 1-64 characters", "type": [ "str" ], - "optional": false, - "name": "title", - "description": "Sticker set title, 1-64 characters" + "name": "title" } ], - "name": "setStickerSetTitle", - "description": "Use this method to set the title of a created sticker set. Returns True on success." - }, - { + "description": "Use this method to set the title of a created sticker set. Returns True on success.", "type": "post", + "name": "setStickerSetTitle", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Sticker set name", "type": [ "str" ], - "optional": false, - "name": "name", - "description": "Sticker set name" + "name": "name" }, { + "optional": false, + "description": "User identifier of the sticker set owner", "type": [ "int" ], - "optional": false, - "name": "user_id", - "description": "User identifier of the sticker set owner" + "name": "user_id" }, { + "optional": true, + "description": "A .WEBP or .PNG image with the thumbnail, must be up to 128 kilobytes in size and have a width and height of exactly 100px, or a .TGS animation with a thumbnail up to 32 kilobytes in size (see https://core.telegram.org/stickers#animation-requirements for animated sticker technical requirements), or a WEBM video with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/stickers#video-requirements for video sticker technical requirements. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files ». Animated and video sticker set thumbnails can't be uploaded via HTTP URL. If omitted, then the thumbnail is dropped and the first sticker is used as the thumbnail.", "type": [ "file", "str" ], - "optional": true, - "name": "thumbnail", - "description": "A .WEBP or .PNG image with the thumbnail, must be up to 128 kilobytes in size and have a width and height of exactly 100px, or a .TGS animation with a thumbnail up to 32 kilobytes in size (see https://core.telegram.org/stickers#animated-sticker-requirements for animated sticker technical requirements), or a WEBM video with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/stickers#video-sticker-requirements for video sticker technical requirements. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files ». Animated and video sticker set thumbnails can't be uploaded via HTTP URL. If omitted, then the thumbnail is dropped and the first sticker is used as the thumbnail." + "name": "thumbnail" }, { + "optional": false, + "description": "Format of the thumbnail, must be one of “static” for a .WEBP or .PNG image, “animated” for a .TGS animation, or “video” for a WEBM video", "type": [ "str" ], - "optional": false, - "name": "format", - "description": "Format of the thumbnail, must be one of “static” for a .WEBP or .PNG image, “animated” for a .TGS animation, or “video” for a WEBM video" + "name": "format" } ], - "name": "setStickerSetThumbnail", - "description": "Use this method to set the thumbnail of a regular or mask sticker set. The format of the thumbnail file must match the format of the stickers in the set. Returns True on success." - }, - { + "description": "Use this method to set the thumbnail of a regular or mask sticker set. The format of the thumbnail file must match the format of the stickers in the set. Returns True on success.", "type": "post", + "name": "setStickerSetThumbnail", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Sticker set name", "type": [ "str" ], - "optional": false, - "name": "name", - "description": "Sticker set name" + "name": "name" }, { + "optional": true, + "description": "Custom emoji identifier of a sticker from the sticker set; pass an empty string to drop the thumbnail and use the first sticker as the thumbnail.", "type": [ "str" ], - "optional": true, - "name": "custom_emoji_id", - "description": "Custom emoji identifier of a sticker from the sticker set; pass an empty string to drop the thumbnail and use the first sticker as the thumbnail." + "name": "custom_emoji_id" } ], + "description": "Use this method to set the thumbnail of a custom emoji sticker set. Returns True on success.", + "type": "post", "name": "setCustomEmojiStickerSetThumbnail", - "description": "Use this method to set the thumbnail of a custom emoji sticker set. Returns True on success." + "return": [ + "true" + ] }, { + "params": [ + { + "optional": false, + "description": "Sticker set name", + "type": [ + "str" + ], + "name": "name" + } + ], + "description": "Use this method to delete a sticker set that was created by the bot. Returns True on success.", "type": "post", + "name": "deleteStickerSet", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier of the target user that will receive the gift", + "type": [ + "int" + ], + "name": "user_id" + }, + { + "optional": false, + "description": "Identifier of the gift", + "type": [ + "str" + ], + "name": "gift_id" + }, + { + "optional": true, + "description": "Text that will be shown along with the gift; 0-255 characters", + "type": [ + "str" + ], + "name": "text" + }, + { + "optional": true, + "description": "Mode for parsing entities in the text. See formatting options for more details. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, and “custom_emoji” are ignored.", "type": [ "str" ], + "name": "text_parse_mode" + }, + { + "optional": true, + "description": "A JSON-serialized list of special entities that appear in the gift text. It can be specified instead of text_parse_mode. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, and “custom_emoji” are ignored.", + "type": [ + [ + "array", + [ + "MessageEntity" + ] + ] + ], + "name": "text_entities" + } + ], + "description": "Returns the list of gifts that can be sent by the bot to users. Requires no parameters. Returns a Gifts object.", + "type": "get", + "name": "getAvailableGifts", + "return": [ + "Gifts" + ] + }, + { + "params": [ + { + "optional": false, + "description": "Unique identifier of the target user that will receive the gift", + "type": [ + "int" + ], + "name": "user_id" + }, + { "optional": false, - "name": "name", - "description": "Sticker set name" + "description": "Identifier of the gift", + "type": [ + "str" + ], + "name": "gift_id" + }, + { + "optional": true, + "description": "Text that will be shown along with the gift; 0-255 characters", + "type": [ + "str" + ], + "name": "text" + }, + { + "optional": true, + "description": "Mode for parsing entities in the text. See formatting options for more details. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, and “custom_emoji” are ignored.", + "type": [ + "str" + ], + "name": "text_parse_mode" + }, + { + "optional": true, + "description": "A JSON-serialized list of special entities that appear in the gift text. It can be specified instead of text_parse_mode. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, and “custom_emoji” are ignored.", + "type": [ + [ + "array", + [ + "MessageEntity" + ] + ] + ], + "name": "text_entities" } ], - "name": "deleteStickerSet", - "description": "Use this method to delete a sticker set that was created by the bot. Returns True on success." - }, - { + "description": "Sends a gift to the given user. The gift can't be converted to Telegram Stars by the user. Returns True on success.", "type": "post", + "name": "sendGift", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the answered query", "type": [ "str" ], - "optional": false, - "name": "inline_query_id", - "description": "Unique identifier for the answered query" + "name": "inline_query_id" }, { + "optional": false, + "description": "A JSON-serialized array of results for the inline query", "type": [ [ "array", @@ -15195,136 +17407,194 @@ ] ] ], - "optional": false, - "name": "results", - "description": "A JSON-serialized array of results for the inline query" + "name": "results" }, { + "optional": true, + "description": "The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300.", "type": [ "int" ], - "optional": true, - "name": "cache_time", - "description": "The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300." + "name": "cache_time" }, { + "optional": true, + "description": "Pass True if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query.", "type": [ "bool" ], - "optional": true, - "name": "is_personal", - "description": "Pass True if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query." + "name": "is_personal" }, { + "optional": true, + "description": "Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don't support pagination. Offset length can't exceed 64 bytes.", "type": [ "str" ], - "optional": true, - "name": "next_offset", - "description": "Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don't support pagination. Offset length can't exceed 64 bytes." + "name": "next_offset" }, { + "optional": true, + "description": "A JSON-serialized object describing a button to be shown above inline query results", "type": [ "InlineQueryResultsButton" ], - "optional": true, - "name": "button", - "description": "A JSON-serialized object describing a button to be shown above inline query results" + "name": "button" } ], + "description": "Use this method to send answers to an inline query. On success, True is returned.\nNo more than 50 results per query are allowed.", + "type": "post", "name": "answerInlineQuery", - "description": "Use this method to send answers to an inline query. On success, True is returned.\nNo more than 50 results per query are allowed." + "return": [ + "true" + ] }, { - "type": "post", - "return": [ - "SentWebAppMessage" - ], "params": [ { + "optional": false, + "description": "Unique identifier for the query to be answered", "type": [ "str" ], - "optional": false, - "name": "web_app_query_id", - "description": "Unique identifier for the query to be answered" + "name": "web_app_query_id" }, { + "optional": false, + "description": "A JSON-serialized object describing the message to be sent", "type": [ "InlineQueryResult" ], - "optional": false, - "name": "result", - "description": "A JSON-serialized object describing the message to be sent" + "name": "result" } ], + "description": "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.", + "type": "post", "name": "answerWebAppQuery", - "description": "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." + "return": [ + "SentWebAppMessage" + ] }, { + "params": [ + { + "optional": false, + "description": "Unique identifier of the target user that can use the prepared message", + "type": [ + "int" + ], + "name": "user_id" + }, + { + "optional": false, + "description": "A JSON-serialized object describing the message to be sent", + "type": [ + "InlineQueryResult" + ], + "name": "result" + }, + { + "optional": true, + "description": "Pass True if the message can be sent to private chats with users", + "type": [ + "bool" + ], + "name": "allow_user_chats" + }, + { + "optional": true, + "description": "Pass True if the message can be sent to private chats with bots", + "type": [ + "bool" + ], + "name": "allow_bot_chats" + }, + { + "optional": true, + "description": "Pass True if the message can be sent to group and supergroup chats", + "type": [ + "bool" + ], + "name": "allow_group_chats" + }, + { + "optional": true, + "description": "Pass True if the message can be sent to channel chats", + "type": [ + "bool" + ], + "name": "allow_channel_chats" + } + ], + "description": "Stores a message that can be sent by a user of a Mini App. Returns a PreparedInlineMessage object.", "type": "post", + "name": "savePreparedInlineMessage", "return": [ - "Message" - ], + "PreparedInlineMessage" + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": [ "int", "str" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + "name": "chat_id" }, { + "optional": true, + "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only", "type": [ "int" ], - "optional": true, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only" + "name": "message_thread_id" }, { + "optional": false, + "description": "Product name, 1-32 characters", "type": [ "str" ], - "optional": false, - "name": "title", - "description": "Product name, 1-32 characters" + "name": "title" }, { + "optional": false, + "description": "Product description, 1-255 characters", "type": [ "str" ], - "optional": false, - "name": "description", - "description": "Product description, 1-255 characters" + "name": "description" }, { + "optional": false, + "description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.", "type": [ "str" ], - "optional": false, - "name": "payload", - "description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes." + "name": "payload" }, { + "optional": true, + "description": "Payment provider token, obtained via @BotFather. Pass an empty string for payments in Telegram Stars.", "type": [ "str" ], - "optional": false, - "name": "provider_token", - "description": "Payment provider token, obtained via @BotFather" + "name": "provider_token" }, { + "optional": false, + "description": "Three-letter ISO 4217 currency code, see more on currencies. Pass “XTR” for payments in Telegram Stars.", "type": [ "str" ], - "optional": false, - "name": "currency", - "description": "Three-letter ISO 4217 currency code, see more on currencies" + "name": "currency" }, { + "optional": false, + "description": "Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must contain exactly one item for payments in Telegram Stars.", "type": [ [ "array", @@ -15333,19 +17603,19 @@ ] ] ], - "optional": false, - "name": "prices", - "description": "Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)" + "name": "prices" }, { + "optional": true, + "description": "The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). Defaults to 0. Not supported for payments in Telegram Stars.", "type": [ "int" ], - "optional": true, - "name": "max_tip_amount", - "description": "The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). Defaults to 0" + "name": "max_tip_amount" }, { + "optional": true, + "description": "A JSON-serialized array of suggested amounts of tips in the smallest units of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount.", "type": [ [ "array", @@ -15354,197 +17624,221 @@ ] ] ], - "optional": true, - "name": "suggested_tip_amounts", - "description": "A JSON-serialized array of suggested amounts of tips in the smallest units of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount." + "name": "suggested_tip_amounts" }, { + "optional": true, + "description": "Unique deep-linking parameter. If left empty, forwarded copies of the sent message will have a Pay button, allowing multiple users to pay directly from the forwarded message, using the same invoice. If non-empty, forwarded copies of the sent message will have a URL button with a deep link to the bot (instead of a Pay button), with the value used as the start parameter", "type": [ "str" ], - "optional": true, - "name": "start_parameter", - "description": "Unique deep-linking parameter. If left empty, forwarded copies of the sent message will have a Pay button, allowing multiple users to pay directly from the forwarded message, using the same invoice. If non-empty, forwarded copies of the sent message will have a URL button with a deep link to the bot (instead of a Pay button), with the value used as the start parameter" + "name": "start_parameter" }, { + "optional": true, + "description": "JSON-serialized data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider.", "type": [ "str" ], - "optional": true, - "name": "provider_data", - "description": "JSON-serialized data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider." + "name": "provider_data" }, { + "optional": true, + "description": "URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for.", "type": [ "str" ], - "optional": true, - "name": "photo_url", - "description": "URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for." + "name": "photo_url" }, { + "optional": true, + "description": "Photo size in bytes", "type": [ "int" ], - "optional": true, - "name": "photo_size", - "description": "Photo size in bytes" + "name": "photo_size" }, { + "optional": true, + "description": "Photo width", "type": [ "int" ], - "optional": true, - "name": "photo_width", - "description": "Photo width" + "name": "photo_width" }, { + "optional": true, + "description": "Photo height", "type": [ "int" ], - "optional": true, - "name": "photo_height", - "description": "Photo height" + "name": "photo_height" }, { + "optional": true, + "description": "Pass True if you require the user's full name to complete the order. Ignored for payments in Telegram Stars.", "type": [ "bool" ], - "optional": true, - "name": "need_name", - "description": "Pass True if you require the user's full name to complete the order" + "name": "need_name" }, { + "optional": true, + "description": "Pass True if you require the user's phone number to complete the order. Ignored for payments in Telegram Stars.", "type": [ "bool" ], - "optional": true, - "name": "need_phone_number", - "description": "Pass True if you require the user's phone number to complete the order" + "name": "need_phone_number" }, { + "optional": true, + "description": "Pass True if you require the user's email address to complete the order. Ignored for payments in Telegram Stars.", "type": [ "bool" ], - "optional": true, - "name": "need_email", - "description": "Pass True if you require the user's email address to complete the order" + "name": "need_email" }, { + "optional": true, + "description": "Pass True if you require the user's shipping address to complete the order. Ignored for payments in Telegram Stars.", "type": [ "bool" ], - "optional": true, - "name": "need_shipping_address", - "description": "Pass True if you require the user's shipping address to complete the order" + "name": "need_shipping_address" }, { + "optional": true, + "description": "Pass True if the user's phone number should be sent to the provider. Ignored for payments in Telegram Stars.", "type": [ "bool" ], - "optional": true, - "name": "send_phone_number_to_provider", - "description": "Pass True if the user's phone number should be sent to provider" + "name": "send_phone_number_to_provider" }, { + "optional": true, + "description": "Pass True if the user's email address should be sent to the provider. Ignored for payments in Telegram Stars.", "type": [ "bool" ], - "optional": true, - "name": "send_email_to_provider", - "description": "Pass True if the user's email address should be sent to provider" + "name": "send_email_to_provider" }, { + "optional": true, + "description": "Pass True if the final price depends on the shipping method. Ignored for payments in Telegram Stars.", "type": [ "bool" ], - "optional": true, - "name": "is_flexible", - "description": "Pass True if the final price depends on the shipping method" + "name": "is_flexible" }, { + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound.", "type": [ "bool" ], + "name": "disable_notification" + }, + { "optional": true, - "name": "disable_notification", - "description": "Sends the message silently. Users will receive a notification with no sound." + "description": "Protects the contents of the sent message from forwarding and saving", + "type": [ + "bool" + ], + "name": "protect_content" }, { + "optional": true, + "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance", "type": [ "bool" ], + "name": "allow_paid_broadcast" + }, + { "optional": true, - "name": "protect_content", - "description": "Protects the contents of the sent message from forwarding and saving" + "description": "Unique identifier of the message effect to be added to the message; for private chats only", + "type": [ + "str" + ], + "name": "message_effect_id" }, { + "optional": true, + "description": "Description of the message to reply to", "type": [ "ReplyParameters" ], - "optional": true, - "name": "reply_parameters", - "description": "Description of the message to reply to" + "name": "reply_parameters" }, { + "optional": true, + "description": "A JSON-serialized object for an inline keyboard. If empty, one 'Pay total price' button will be shown. If not empty, the first button must be a Pay button.", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "A JSON-serialized object for an inline keyboard. If empty, one 'Pay total price' button will be shown. If not empty, the first button must be a Pay button." + "name": "reply_markup" } ], + "description": "Use this method to send invoices. On success, the sent Message is returned.", + "type": "post", "name": "sendInvoice", - "description": "Use this method to send invoices. On success, the sent Message is returned." + "return": [ + "Message" + ] }, { - "type": "post", - "return": [ - "str" - ], "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the link will be created. For payments in Telegram Stars only.", "type": [ "str" ], - "optional": false, - "name": "title", - "description": "Product name, 1-32 characters" + "name": "business_connection_id" }, { + "optional": false, + "description": "Product name, 1-32 characters", "type": [ "str" ], - "optional": false, - "name": "description", - "description": "Product description, 1-255 characters" + "name": "title" }, { + "optional": false, + "description": "Product description, 1-255 characters", "type": [ "str" ], - "optional": false, - "name": "payload", - "description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes." + "name": "description" }, { + "optional": false, + "description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.", "type": [ "str" ], - "optional": false, - "name": "provider_token", - "description": "Payment provider token, obtained via BotFather" + "name": "payload" }, { + "optional": true, + "description": "Payment provider token, obtained via @BotFather. Pass an empty string for payments in Telegram Stars.", "type": [ "str" ], + "name": "provider_token" + }, + { "optional": false, - "name": "currency", - "description": "Three-letter ISO 4217 currency code, see more on currencies" + "description": "Three-letter ISO 4217 currency code, see more on currencies. Pass “XTR” for payments in Telegram Stars.", + "type": [ + "str" + ], + "name": "currency" }, { + "optional": false, + "description": "Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must contain exactly one item for payments in Telegram Stars.", "type": [ [ "array", @@ -15553,19 +17847,27 @@ ] ] ], - "optional": false, - "name": "prices", - "description": "Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)" + "name": "prices" }, { + "optional": true, + "description": "The number of seconds the subscription will be active for before the next payment. The currency must be set to “XTR” (Telegram Stars) if the parameter is used. Currently, it must always be 2592000 (30 days) if specified. Any number of subscriptions can be active for a given bot at the same time, including multiple concurrent subscriptions from the same user.", "type": [ "int" ], + "name": "subscription_period" + }, + { "optional": true, - "name": "max_tip_amount", - "description": "The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). Defaults to 0" + "description": "The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). Defaults to 0. Not supported for payments in Telegram Stars.", + "type": [ + "int" + ], + "name": "max_tip_amount" }, { + "optional": true, + "description": "A JSON-serialized array of suggested amounts of tips in the smallest units of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount.", "type": [ [ "array", @@ -15574,206 +17876,292 @@ ] ] ], - "optional": true, - "name": "suggested_tip_amounts", - "description": "A JSON-serialized array of suggested amounts of tips in the smallest units of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount." + "name": "suggested_tip_amounts" }, { + "optional": true, + "description": "JSON-serialized data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider.", "type": [ "str" ], - "optional": true, - "name": "provider_data", - "description": "JSON-serialized data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider." + "name": "provider_data" }, { + "optional": true, + "description": "URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service.", "type": [ "str" ], - "optional": true, - "name": "photo_url", - "description": "URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service." + "name": "photo_url" }, { + "optional": true, + "description": "Photo size in bytes", "type": [ "int" ], - "optional": true, - "name": "photo_size", - "description": "Photo size in bytes" + "name": "photo_size" }, { + "optional": true, + "description": "Photo width", "type": [ "int" ], - "optional": true, - "name": "photo_width", - "description": "Photo width" + "name": "photo_width" }, { + "optional": true, + "description": "Photo height", "type": [ "int" ], - "optional": true, - "name": "photo_height", - "description": "Photo height" + "name": "photo_height" }, { + "optional": true, + "description": "Pass True if you require the user's full name to complete the order. Ignored for payments in Telegram Stars.", "type": [ "bool" ], - "optional": true, - "name": "need_name", - "description": "Pass True if you require the user's full name to complete the order" + "name": "need_name" }, { + "optional": true, + "description": "Pass True if you require the user's phone number to complete the order. Ignored for payments in Telegram Stars.", "type": [ "bool" ], - "optional": true, - "name": "need_phone_number", - "description": "Pass True if you require the user's phone number to complete the order" + "name": "need_phone_number" }, { + "optional": true, + "description": "Pass True if you require the user's email address to complete the order. Ignored for payments in Telegram Stars.", "type": [ "bool" ], - "optional": true, - "name": "need_email", - "description": "Pass True if you require the user's email address to complete the order" + "name": "need_email" }, { + "optional": true, + "description": "Pass True if you require the user's shipping address to complete the order. Ignored for payments in Telegram Stars.", "type": [ "bool" ], - "optional": true, - "name": "need_shipping_address", - "description": "Pass True if you require the user's shipping address to complete the order" + "name": "need_shipping_address" }, { + "optional": true, + "description": "Pass True if the user's phone number should be sent to the provider. Ignored for payments in Telegram Stars.", "type": [ "bool" ], - "optional": true, - "name": "send_phone_number_to_provider", - "description": "Pass True if the user's phone number should be sent to the provider" + "name": "send_phone_number_to_provider" }, { + "optional": true, + "description": "Pass True if the user's email address should be sent to the provider. Ignored for payments in Telegram Stars.", "type": [ "bool" ], - "optional": true, - "name": "send_email_to_provider", - "description": "Pass True if the user's email address should be sent to the provider" + "name": "send_email_to_provider" }, { + "optional": true, + "description": "Pass True if the final price depends on the shipping method. Ignored for payments in Telegram Stars.", "type": [ "bool" ], - "optional": true, - "name": "is_flexible", - "description": "Pass True if the final price depends on the shipping method" + "name": "is_flexible" } ], + "description": "Use this method to create a link for an invoice. Returns the created invoice link as String on success.", + "type": "post", "name": "createInvoiceLink", - "description": "Use this method to create a link for an invoice. Returns the created invoice link as String on success." + "return": [ + "str" + ] }, { + "params": [ + { + "optional": false, + "description": "Unique identifier for the query to be answered", + "type": [ + "str" + ], + "name": "shipping_query_id" + }, + { + "optional": false, + "description": "Pass True if delivery to the specified address is possible and False if there are any problems (for example, if delivery to the specified address is not possible)", + "type": [ + "bool" + ], + "name": "ok" + }, + { + "optional": true, + "description": "Required if ok is True. A JSON-serialized array of available shipping options.", + "type": [ + [ + "array", + [ + "ShippingOption" + ] + ] + ], + "name": "shipping_options" + }, + { + "optional": true, + "description": "Required if ok is False. Error message in human readable form that explains why it is impossible to complete the order (e.g. \"Sorry, delivery to your desired address is unavailable'). Telegram will display this message to the user.", + "type": [ + "str" + ], + "name": "error_message" + } + ], + "description": "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.", "type": "post", + "name": "answerShippingQuery", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Unique identifier for the query to be answered", + "type": [ + "str" + ], + "name": "pre_checkout_query_id" + }, + { + "optional": false, + "description": "Specify True if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order. Use False if there are any problems.", + "type": [ + "bool" + ], + "name": "ok" + }, + { + "optional": true, + "description": "Required if ok is False. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. \"Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!\"). Telegram will display this message to the user.", "type": [ "str" ], - "optional": false, - "name": "shipping_query_id", - "description": "Unique identifier for the query to be answered" + "name": "error_message" + } + ], + "description": "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.", + "type": "post", + "name": "answerPreCheckoutQuery", + "return": [ + "true" + ] + }, + { + "params": [ + { + "optional": true, + "description": "Number of transactions to skip in the response", + "type": [ + "int" + ], + "name": "offset" }, { + "optional": true, + "description": "The maximum number of transactions to be retrieved. Values between 1-100 are accepted. Defaults to 100.", "type": [ - "bool" + "int" ], - "optional": false, - "name": "ok", - "description": "Pass True if delivery to the specified address is possible and False if there are any problems (for example, if delivery to the specified address is not possible)" - }, + "name": "limit" + } + ], + "description": "Returns the bot's Telegram Star transactions in chronological order. On success, returns a StarTransactions object.", + "type": "get", + "name": "getStarTransactions", + "return": [ + "StarTransactions" + ] + }, + { + "params": [ { + "optional": false, + "description": "Identifier of the user whose payment will be refunded", "type": [ - [ - "array", - [ - "ShippingOption" - ] - ] + "int" ], - "optional": true, - "name": "shipping_options", - "description": "Required if ok is True. A JSON-serialized array of available shipping options." + "name": "user_id" }, { + "optional": false, + "description": "Telegram payment identifier", "type": [ "str" ], - "optional": true, - "name": "error_message", - "description": "Required if ok is False. Error message in human readable form that explains why it is impossible to complete the order (e.g. \"Sorry, delivery to your desired address is unavailable'). Telegram will display this message to the user." + "name": "telegram_payment_charge_id" } ], - "name": "answerShippingQuery", - "description": "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." - }, - { + "description": "Refunds a successful payment in Telegram Stars. Returns True on success.", "type": "post", + "name": "refundStarPayment", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "Identifier of the user whose subscription will be edited", "type": [ - "str" + "int" ], - "optional": false, - "name": "pre_checkout_query_id", - "description": "Unique identifier for the query to be answered" + "name": "user_id" }, { + "optional": false, + "description": "Telegram payment identifier for the subscription", "type": [ - "bool" + "str" ], - "optional": false, - "name": "ok", - "description": "Specify True if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order. Use False if there are any problems." + "name": "telegram_payment_charge_id" }, { + "optional": false, + "description": "Pass True to cancel extension of the user subscription; the subscription must be active up to the end of the current subscription period. Pass False to allow the user to re-enable a subscription that was previously canceled by the bot.", "type": [ - "str" + "bool" ], - "optional": true, - "name": "error_message", - "description": "Required if ok is False. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. \"Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!\"). Telegram will display this message to the user." + "name": "is_canceled" } ], - "name": "answerPreCheckoutQuery", - "description": "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." - }, - { + "description": "Allows the bot to cancel or re-enable extension of a subscription paid in Telegram Stars. Returns True on success.", "type": "post", + "name": "editUserStarSubscription", "return": [ "true" - ], + ] + }, + { "params": [ { + "optional": false, + "description": "User identifier", "type": [ "int" ], - "optional": false, - "name": "user_id", - "description": "User identifier" + "name": "user_id" }, { + "optional": false, + "description": "A JSON-serialized array describing the errors", "type": [ [ "array", @@ -15782,324 +18170,219 @@ ] ] ], - "optional": false, - "name": "errors", - "description": "A JSON-serialized array describing the errors" + "name": "errors" } ], + "description": "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.", + "type": "post", "name": "setPassportDataErrors", - "description": "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." + "return": [ + "true" + ] }, { - "type": "post", - "return": [ - "Message" - ], "params": [ { + "optional": true, + "description": "Unique identifier of the business connection on behalf of which the message will be sent", "type": [ "str" ], - "optional": true, - "name": "business_connection_id", - "description": "Unique identifier of the business connection on behalf of which the message will be sent" + "name": "business_connection_id" }, { + "optional": false, + "description": "Unique identifier for the target chat", "type": [ "int" ], - "optional": false, - "name": "chat_id", - "description": "Unique identifier for the target chat" + "name": "chat_id" }, { + "optional": true, + "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only", "type": [ "int" ], - "optional": true, - "name": "message_thread_id", - "description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only" + "name": "message_thread_id" }, { + "optional": false, + "description": "Short name of the game, serves as the unique identifier for the game. Set up your games via @BotFather.", "type": [ "str" ], - "optional": false, - "name": "game_short_name", - "description": "Short name of the game, serves as the unique identifier for the game. Set up your games via @BotFather." + "name": "game_short_name" }, { + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound.", "type": [ "bool" ], + "name": "disable_notification" + }, + { "optional": true, - "name": "disable_notification", - "description": "Sends the message silently. Users will receive a notification with no sound." + "description": "Protects the contents of the sent message from forwarding and saving", + "type": [ + "bool" + ], + "name": "protect_content" }, { + "optional": true, + "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance", "type": [ "bool" ], + "name": "allow_paid_broadcast" + }, + { "optional": true, - "name": "protect_content", - "description": "Protects the contents of the sent message from forwarding and saving" + "description": "Unique identifier of the message effect to be added to the message; for private chats only", + "type": [ + "str" + ], + "name": "message_effect_id" }, { + "optional": true, + "description": "Description of the message to reply to", "type": [ "ReplyParameters" ], - "optional": true, - "name": "reply_parameters", - "description": "Description of the message to reply to" + "name": "reply_parameters" }, { + "optional": true, + "description": "A JSON-serialized object for an inline keyboard. If empty, one 'Play game_title' button will be shown. If not empty, the first button must launch the game.", "type": [ "InlineKeyboardMarkup" ], - "optional": true, - "name": "reply_markup", - "description": "A JSON-serialized object for an inline keyboard. If empty, one 'Play game_title' button will be shown. If not empty, the first button must launch the game. Not supported for messages sent on behalf of a business account." + "name": "reply_markup" } ], + "description": "Use this method to send a game. On success, the sent Message is returned.", + "type": "post", "name": "sendGame", - "description": "Use this method to send a game. On success, the sent Message is returned." + "return": [ + "Message" + ] }, { - "type": "post", - "return": [ - "Message", - "true" - ], "params": [ { + "optional": false, + "description": "User identifier", "type": [ "int" ], - "optional": false, - "name": "user_id", - "description": "User identifier" + "name": "user_id" }, { + "optional": false, + "description": "New score, must be non-negative", "type": [ "int" ], - "optional": false, - "name": "score", - "description": "New score, must be non-negative" + "name": "score" }, { + "optional": true, + "description": "Pass True if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters", "type": [ "bool" ], - "optional": true, - "name": "force", - "description": "Pass True if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters" + "name": "force" }, { + "optional": true, + "description": "Pass True if the game message should not be automatically edited to include the current scoreboard", "type": [ "bool" ], - "optional": true, - "name": "disable_edit_message", - "description": "Pass True if the game message should not be automatically edited to include the current scoreboard" + "name": "disable_edit_message" }, { + "optional": true, + "description": "Required if inline_message_id is not specified. Unique identifier for the target chat", "type": [ "int" ], - "optional": true, - "name": "chat_id", - "description": "Required if inline_message_id is not specified. Unique identifier for the target chat" + "name": "chat_id" }, { + "optional": true, + "description": "Required if inline_message_id is not specified. Identifier of the sent message", "type": [ "int" ], - "optional": true, - "name": "message_id", - "description": "Required if inline_message_id is not specified. Identifier of the sent message" + "name": "message_id" }, { + "optional": true, + "description": "Required if chat_id and message_id are not specified. Identifier of the inline message", "type": [ "str" ], - "optional": true, - "name": "inline_message_id", - "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" + "name": "inline_message_id" } ], + "description": "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.", + "type": "post", "name": "setGameScore", - "description": "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." + "return": [ + "Message", + "true" + ] }, { - "type": "get", - "return": [ - [ - "array", - [ - "GameHighScore" - ] - ] - ], "params": [ { + "optional": false, + "description": "Target user id", "type": [ "int" ], - "optional": false, - "name": "user_id", - "description": "Target user id" + "name": "user_id" }, { + "optional": true, + "description": "Required if inline_message_id is not specified. Unique identifier for the target chat", "type": [ "int" ], - "optional": true, - "name": "chat_id", - "description": "Required if inline_message_id is not specified. Unique identifier for the target chat" + "name": "chat_id" }, { + "optional": true, + "description": "Required if inline_message_id is not specified. Identifier of the sent message", "type": [ "int" ], - "optional": true, - "name": "message_id", - "description": "Required if inline_message_id is not specified. Identifier of the sent message" + "name": "message_id" }, { + "optional": true, + "description": "Required if chat_id and message_id are not specified. Identifier of the inline message", "type": [ "str" ], - "optional": true, - "name": "inline_message_id", - "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" + "name": "inline_message_id" } ], + "description": "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.", + "type": "get", "name": "getGameHighScores", - "description": "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." - } - ], - "generics": [ - { - "subtypes": [ - "Message", - "InaccessibleMessage" - ], - "name": "MaybeInaccessibleMessage" - }, - { - "subtypes": [ - "MessageOriginUser", - "MessageOriginHiddenUser", - "MessageOriginChat", - "MessageOriginChannel" - ], - "name": "MessageOrigin" - }, - { - "subtypes": [ - "ChatMemberOwner", - "ChatMemberAdministrator", - "ChatMemberMember", - "ChatMemberRestricted", - "ChatMemberLeft", - "ChatMemberBanned" - ], - "name": "ChatMember" - }, - { - "subtypes": [ - "ReactionTypeEmoji", - "ReactionTypeCustomEmoji" - ], - "name": "ReactionType" - }, - { - "subtypes": [ - "BotCommandScopeDefault", - "BotCommandScopeAllPrivateChats", - "BotCommandScopeAllGroupChats", - "BotCommandScopeAllChatAdministrators", - "BotCommandScopeChat", - "BotCommandScopeChatAdministrators", - "BotCommandScopeChatMember" - ], - "name": "BotCommandScope" - }, - { - "subtypes": [ - "MenuButtonCommands", - "MenuButtonWebApp", - "MenuButtonDefault" - ], - "name": "MenuButton" - }, - { - "subtypes": [ - "ChatBoostSourcePremium", - "ChatBoostSourceGiftCode", - "ChatBoostSourceGiveaway" - ], - "name": "ChatBoostSource" - }, - { - "subtypes": [ - "InputMediaAnimation", - "InputMediaDocument", - "InputMediaAudio", - "InputMediaPhoto", - "InputMediaVideo" - ], - "name": "InputMedia" - }, - { - "subtypes": [ - "InlineQueryResultCachedAudio", - "InlineQueryResultCachedDocument", - "InlineQueryResultCachedGif", - "InlineQueryResultCachedMpeg4Gif", - "InlineQueryResultCachedPhoto", - "InlineQueryResultCachedSticker", - "InlineQueryResultCachedVideo", - "InlineQueryResultCachedVoice", - "InlineQueryResultArticle", - "InlineQueryResultAudio", - "InlineQueryResultContact", - "InlineQueryResultGame", - "InlineQueryResultDocument", - "InlineQueryResultGif", - "InlineQueryResultLocation", - "InlineQueryResultMpeg4Gif", - "InlineQueryResultPhoto", - "InlineQueryResultVenue", - "InlineQueryResultVideo", - "InlineQueryResultVoice" - ], - "name": "InlineQueryResult" - }, - { - "subtypes": [ - "InputTextMessageContent", - "InputLocationMessageContent", - "InputVenueMessageContent", - "InputContactMessageContent", - "InputInvoiceMessageContent" - ], - "name": "InputMessageContent" - }, - { - "subtypes": [ - "PassportElementErrorDataField", - "PassportElementErrorFrontSide", - "PassportElementErrorReverseSide", - "PassportElementErrorSelfie", - "PassportElementErrorFile", - "PassportElementErrorFiles", - "PassportElementErrorTranslationFile", - "PassportElementErrorTranslationFiles", - "PassportElementErrorUnspecified" - ], - "name": "PassportElementError" + "return": [ + [ + "array", + [ + "GameHighScore" + ] + ] + ] } ] } diff --git a/v2/types.lisp b/v2/types.lisp index 23a533d..e6a22c8 100644 --- a/v2/types.lisp +++ b/v2/types.lisp @@ -3,15 +3,12 @@ (:import-from #:cl-telegram-bot2/api) (:import-from #:serapeum #:soft-list-of) - (:export #:inline-keyboard-button - #:inline-keyboard-buttons)) + (:export #:reply-markup-type)) (in-package #:cl-telegram-bot2/types) -(deftype inline-keyboard-button () - `(or string - cl-telegram-bot2/api:keyboard-button)) - - -(deftype inline-keyboard-buttons () - '(soft-list-of inline-keyboard-button)) +(deftype reply-markup-type () + `(or cl-telegram-bot2/api:reply-keyboard-markup + cl-telegram-bot2/api:reply-keyboard-remove + cl-telegram-bot2/api:inline-keyboard-markup + cl-telegram-bot2/api:force-reply)) diff --git a/v2/utils.lisp b/v2/utils.lisp index 9e01aca..b5f6cb2 100644 --- a/v2/utils.lisp +++ b/v2/utils.lisp @@ -9,9 +9,13 @@ (:import-from #:alexandria #:non-negative-fixnum #:positive-fixnum) + (:import-from #:yason + #:with-output-to-string*) (:export #:call-if-needed #:deep-copy - #:arity)) + #:arity + #:from-json + #:to-json)) (in-package #:cl-telegram-bot2/utils) @@ -35,6 +39,23 @@ (arglist funcallable)))) +(-> to-json (t) + (values string &optional)) + + +(defun to-json (obj) + (with-output-to-string* () + (yason:encode obj))) + + +(-> from-json (string) + (values t &optional)) + +(defun from-json (string) + (yason:parse string)) + + + ;; This deep copy code was taken from CL-MOP ;; https://github.com/Inaimathi/cl-mop ;; but code for copying a list was replaced with code @@ -77,3 +98,4 @@ It merely returns its results." (defmethod deep-copy ((object structure-object)) "A deep copy of a structure-object is (copy-structure object)." (copy-structure object)) +