cl-telegram-bot/API.lisp

2862 lines
188 KiB
Common Lisp
Raw Normal View History

2019-08-16 17:35:34 +02:00
; DO NOT EDIT, AUTO GENERATED
(IN-PACKAGE :CL-TELEGRAM-BOT)
(DEFPARAMETER *API-TYPES*
'(*UPDATE *WEBHOOK-INFO *USER *CHAT *MESSAGE *MESSAGE-ENTITY *PHOTO-SIZE
*AUDIO *DOCUMENT *VIDEO *ANIMATION *VOICE *VIDEO-NOTE *CONTACT *LOCATION
*VENUE *POLL-OPTION *POLL *USER-PROFILE-PHOTOS *FILE *REPLY-KEYBOARD-MARKUP
*KEYBOARD-BUTTON *REPLY-KEYBOARD-REMOVE *INLINE-KEYBOARD-MARKUP
*INLINE-KEYBOARD-BUTTON *LOGIN-URL *CALLBACK-QUERY *FORCE-REPLY *CHAT-PHOTO
*CHAT-MEMBER *CHAT-PERMISSIONS *RESPONSE-PARAMETERS *INPUT-MEDIA-PHOTO
*INPUT-MEDIA-VIDEO *INPUT-MEDIA-ANIMATION *INPUT-MEDIA-AUDIO
*INPUT-MEDIA-DOCUMENT *STICKER *STICKER-SET *MASK-POSITION *INLINE-QUERY
*INLINE-QUERY-RESULT-ARTICLE *INLINE-QUERY-RESULT-PHOTO
*INLINE-QUERY-RESULT-GIF *INLINE-QUERY-RESULT-MPEG-4-*GIF
*INLINE-QUERY-RESULT-VIDEO *INLINE-QUERY-RESULT-AUDIO
*INLINE-QUERY-RESULT-VOICE *INLINE-QUERY-RESULT-DOCUMENT
*INLINE-QUERY-RESULT-LOCATION *INLINE-QUERY-RESULT-VENUE
*INLINE-QUERY-RESULT-CONTACT *INLINE-QUERY-RESULT-GAME
*INLINE-QUERY-RESULT-CACHED-PHOTO *INLINE-QUERY-RESULT-CACHED-GIF
*INLINE-QUERY-RESULT-CACHED-MPEG-4-*GIF *INLINE-QUERY-RESULT-CACHED-STICKER
*INLINE-QUERY-RESULT-CACHED-DOCUMENT *INLINE-QUERY-RESULT-CACHED-VIDEO
*INLINE-QUERY-RESULT-CACHED-VOICE *INLINE-QUERY-RESULT-CACHED-AUDIO
*INPUT-TEXT-MESSAGE-CONTENT *INPUT-LOCATION-MESSAGE-CONTENT
*INPUT-VENUE-MESSAGE-CONTENT *INPUT-CONTACT-MESSAGE-CONTENT
*CHOSEN-INLINE-RESULT *PASSPORT-DATA *PASSPORT-FILE
*ENCRYPTED-PASSPORT-ELEMENT *ENCRYPTED-CREDENTIALS
*PASSPORT-ELEMENT-ERROR-DATA-FIELD *PASSPORT-ELEMENT-ERROR-FRONT-SIDE
*PASSPORT-ELEMENT-ERROR-REVERSE-SIDE *PASSPORT-ELEMENT-ERROR-SELFIE
*PASSPORT-ELEMENT-ERROR-FILE *PASSPORT-ELEMENT-ERROR-FILES
*PASSPORT-ELEMENT-ERROR-TRANSLATION-FILE
*PASSPORT-ELEMENT-ERROR-TRANSLATION-FILES
*PASSPORT-ELEMENT-ERROR-UNSPECIFIED *GAME *GAME-HIGH-SCORE))
;----Getting updates----
(DEFCLASS *UPDATE NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "Update")
(UPDATE--ID :INITARG :UPDATE--ID :ACCESSOR TG-UPDATE--ID :TYPE
INTEGER :DOCUMENTATION
"The updates unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if youre 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.")
(MESSAGE :INITARG :MESSAGE :INITFORM NIL :ACCESSOR TG-MESSAGE :TYPE
*MESSAGE :DOCUMENTATION
"New incoming message of any kind — text, photo, sticker, etc.")
(EDITED--MESSAGE :INITARG :EDITED--MESSAGE :INITFORM NIL :ACCESSOR
TG-EDITED--MESSAGE :TYPE *MESSAGE :DOCUMENTATION
"New version of a message that is known to the bot and was edited")
(CHANNEL--POST :INITARG :CHANNEL--POST :INITFORM NIL :ACCESSOR
TG-CHANNEL--POST :TYPE *MESSAGE :DOCUMENTATION
"New incoming channel post of any kind — text, photo, sticker, etc.")
(EDITED--CHANNEL--POST :INITARG :EDITED--CHANNEL--POST :INITFORM NIL
:ACCESSOR TG-EDITED--CHANNEL--POST :TYPE *MESSAGE :DOCUMENTATION
"New version of a channel post that is known to the bot and was edited")
(INLINE--QUERY :INITARG :INLINE--QUERY :INITFORM NIL :ACCESSOR
TG-INLINE--QUERY :TYPE *INLINE-QUERY :DOCUMENTATION
"New incoming inline query")
(CHOSEN--INLINE--RESULT :INITARG :CHOSEN--INLINE--RESULT :INITFORM
NIL :ACCESSOR TG-CHOSEN--INLINE--RESULT :TYPE *CHOSEN-INLINE-RESULT
:DOCUMENTATION
"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.")
(CALLBACK--QUERY :INITARG :CALLBACK--QUERY :INITFORM NIL :ACCESSOR
TG-CALLBACK--QUERY :TYPE *CALLBACK-QUERY :DOCUMENTATION
"New incoming callback query")
(SHIPPING--QUERY :INITARG :SHIPPING--QUERY :INITFORM NIL :ACCESSOR
TG-SHIPPING--QUERY :TYPE *SHIPPING-QUERY :DOCUMENTATION
"New incoming shipping query. Only for invoices with flexible price")
(PRE--CHECKOUT--QUERY :INITARG :PRE--CHECKOUT--QUERY :INITFORM NIL
:ACCESSOR TG-PRE--CHECKOUT--QUERY :TYPE *PRE-CHECKOUT-QUERY
:DOCUMENTATION
"New incoming pre-checkout query. Contains full information about checkout")
(POLL :INITARG :POLL :INITFORM NIL :ACCESSOR TG-POLL :TYPE *POLL
:DOCUMENTATION
"New poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#update
This object represents an incoming update.At most one of the optional parameters can be present in any given update."))
(DEFUN SET-WEBHOOK (BOT URL &KEY CERTIFICATE MAX--CONNECTIONS ALLOWED--UPDATES)
"https://core.telegram.org/bots/api#setwebhook
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."
(CHECK-TYPE URL STRING)
(LET ((OPTIONS (LIST (CONS :URL URL))))
(WHEN CERTIFICATE (NCONC OPTIONS (LIST (CONS :CERTIFICATE CERTIFICATE))))
(WHEN MAX--CONNECTIONS
(NCONC OPTIONS (LIST (CONS :MAX_CONNECTIONS MAX--CONNECTIONS))))
(WHEN ALLOWED--UPDATES
(NCONC OPTIONS (LIST (CONS :ALLOWED_UPDATES ALLOWED--UPDATES))))
(MAKE-REQUEST BOT "setWebhook" OPTIONS)))
(DEFUN DELETE-WEBHOOK (BOT)
"https://core.telegram.org/bots/api#deletewebhook
Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success. Requires no parameters."
(LET ((OPTIONS (LIST)))
(MAKE-REQUEST BOT "deleteWebhook" OPTIONS)))
(DEFUN GET-WEBHOOK-INFO (BOT)
"https://core.telegram.org/bots/api#getwebhookinfo
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."
(LET ((OPTIONS (LIST)))
(MAKE-REQUEST BOT "getWebhookInfo" OPTIONS :RETURN-TYPE '*WEBHOOK-INFO)))
(DEFCLASS *WEBHOOK-INFO NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "WebhookInfo")
(URL :INITARG :URL :ACCESSOR TG-URL :TYPE STRING :DOCUMENTATION
"Webhook URL, may be empty if webhook is not set up")
(HAS--CUSTOM--CERTIFICATE :INITARG :HAS--CUSTOM--CERTIFICATE
:ACCESSOR TG-HAS--CUSTOM--CERTIFICATE :TYPE BOOLEAN :DOCUMENTATION
"True, if a custom certificate was provided for webhook certificate checks")
(PENDING--UPDATE--COUNT :INITARG :PENDING--UPDATE--COUNT :ACCESSOR
TG-PENDING--UPDATE--COUNT :TYPE INTEGER :DOCUMENTATION
"Number of updates awaiting delivery")
(LAST--ERROR--DATE :INITARG :LAST--ERROR--DATE :INITFORM NIL
:ACCESSOR TG-LAST--ERROR--DATE :TYPE INTEGER :DOCUMENTATION
"Unix time for the most recent error that happened when trying to deliver an update via webhook")
(LAST--ERROR--MESSAGE :INITARG :LAST--ERROR--MESSAGE :INITFORM NIL
:ACCESSOR TG-LAST--ERROR--MESSAGE :TYPE STRING :DOCUMENTATION
"Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook")
(MAX--CONNECTIONS :INITARG :MAX--CONNECTIONS :INITFORM NIL :ACCESSOR
TG-MAX--CONNECTIONS :TYPE INTEGER :DOCUMENTATION
"Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery")
(ALLOWED--UPDATES :INITARG :ALLOWED--UPDATES :INITFORM NIL :ACCESSOR
TG-ALLOWED--UPDATES :TYPE (ARRAY STRING) :DOCUMENTATION
"A list of update types the bot is subscribed to. Defaults to all update types"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#webhookinfo
Contains information about the current status of a webhook."))
;----Available types----
(DEFCLASS *USER NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "User")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE INTEGER :DOCUMENTATION
"Unique identifier for this user or bot")
(IS--BOT :INITARG :IS--BOT :ACCESSOR TG-IS--BOT :TYPE BOOLEAN
:DOCUMENTATION "True, if this user is a bot")
(FIRST--NAME :INITARG :FIRST--NAME :ACCESSOR TG-FIRST--NAME :TYPE
STRING :DOCUMENTATION "Users or bots first name")
(LAST--NAME :INITARG :LAST--NAME :INITFORM NIL :ACCESSOR
TG-LAST--NAME :TYPE STRING :DOCUMENTATION
"Users or bots last name")
(USERNAME :INITARG :USERNAME :INITFORM NIL :ACCESSOR TG-USERNAME
:TYPE STRING :DOCUMENTATION "Users or bots username")
(LANGUAGE--CODE :INITARG :LANGUAGE--CODE :INITFORM NIL :ACCESSOR
TG-LANGUAGE--CODE :TYPE STRING :DOCUMENTATION
"IETF language tag of the user's language"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#user
This object represents a Telegram user or bot."))
(DEFCLASS *CHAT NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "Chat")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE INTEGER :DOCUMENTATION
"Unique identifier for this chat. This number 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 :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of chat, can be either “private”, “group”, “supergroup” or “channel”")
(TITLE :INITARG :TITLE :INITFORM NIL :ACCESSOR TG-TITLE :TYPE STRING
:DOCUMENTATION "Title, for supergroups, channels and group chats")
(USERNAME :INITARG :USERNAME :INITFORM NIL :ACCESSOR TG-USERNAME
:TYPE STRING :DOCUMENTATION
"Username, for private chats, supergroups and channels if available")
(FIRST--NAME :INITARG :FIRST--NAME :INITFORM NIL :ACCESSOR
TG-FIRST--NAME :TYPE STRING :DOCUMENTATION
"First name of the other party in a private chat")
(LAST--NAME :INITARG :LAST--NAME :INITFORM NIL :ACCESSOR
TG-LAST--NAME :TYPE STRING :DOCUMENTATION
"Last name of the other party in a private chat")
(PHOTO :INITARG :PHOTO :INITFORM NIL :ACCESSOR TG-PHOTO :TYPE
*CHAT-PHOTO :DOCUMENTATION "Chat photo. Returned only in getChat.")
(DESCRIPTION :INITARG :DESCRIPTION :INITFORM NIL :ACCESSOR
TG-DESCRIPTION :TYPE STRING :DOCUMENTATION
"Description, for groups, supergroups and channel chats. Returned only in getChat.")
(INVITE--LINK :INITARG :INVITE--LINK :INITFORM NIL :ACCESSOR
TG-INVITE--LINK :TYPE STRING :DOCUMENTATION
"Chat invite link, for groups, supergroups and channel chats. Each administrator in a chat generates their own invite links, so the bot must first generate the link using exportChatInviteLink. Returned only in getChat.")
(PINNED--MESSAGE :INITARG :PINNED--MESSAGE :INITFORM NIL :ACCESSOR
TG-PINNED--MESSAGE :TYPE *MESSAGE :DOCUMENTATION
"Pinned message, for groups, supergroups and channels. Returned only in getChat.")
(PERMISSIONS :INITARG :PERMISSIONS :INITFORM NIL :ACCESSOR
TG-PERMISSIONS :TYPE *CHAT-PERMISSIONS :DOCUMENTATION
"Default chat member permissions, for groups and supergroups. Returned only in getChat.")
(STICKER--SET--NAME :INITARG :STICKER--SET--NAME :INITFORM NIL
:ACCESSOR TG-STICKER--SET--NAME :TYPE STRING :DOCUMENTATION
"For supergroups, name of group sticker set. Returned only in getChat.")
(CAN--SET--STICKER--SET :INITARG :CAN--SET--STICKER--SET :INITFORM
NIL :ACCESSOR TG-CAN--SET--STICKER--SET :TYPE BOOLEAN
:DOCUMENTATION
"True, if the bot can change the group sticker set. Returned only in getChat."))
(:DOCUMENTATION "https://core.telegram.org/bots/api#chat
This object represents a chat."))
(DEFCLASS *MESSAGE NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "Message")
(MESSAGE--ID :INITARG :MESSAGE--ID :ACCESSOR TG-MESSAGE--ID :TYPE
INTEGER :DOCUMENTATION
"Unique message identifier inside this chat")
(FROM :INITARG :FROM :INITFORM NIL :ACCESSOR TG-FROM :TYPE *USER
:DOCUMENTATION "Sender, empty for messages sent to channels")
(DATE :INITARG :DATE :ACCESSOR TG-DATE :TYPE INTEGER :DOCUMENTATION
"Date the message was sent in Unix time")
(CHAT :INITARG :CHAT :ACCESSOR TG-CHAT :TYPE *CHAT :DOCUMENTATION
"Conversation the message belongs to")
(FORWARD--FROM :INITARG :FORWARD--FROM :INITFORM NIL :ACCESSOR
TG-FORWARD--FROM :TYPE *USER :DOCUMENTATION
"For forwarded messages, sender of the original message")
(FORWARD--FROM--CHAT :INITARG :FORWARD--FROM--CHAT :INITFORM NIL
:ACCESSOR TG-FORWARD--FROM--CHAT :TYPE *CHAT :DOCUMENTATION
"For messages forwarded from channels, information about the original channel")
(FORWARD--FROM--MESSAGE--ID :INITARG :FORWARD--FROM--MESSAGE--ID
:INITFORM NIL :ACCESSOR TG-FORWARD--FROM--MESSAGE--ID :TYPE INTEGER
:DOCUMENTATION
"For messages forwarded from channels, identifier of the original message in the channel")
(FORWARD--SIGNATURE :INITARG :FORWARD--SIGNATURE :INITFORM NIL
:ACCESSOR TG-FORWARD--SIGNATURE :TYPE STRING :DOCUMENTATION
"For messages forwarded from channels, signature of the post author if present")
(FORWARD--SENDER--NAME :INITARG :FORWARD--SENDER--NAME :INITFORM NIL
:ACCESSOR TG-FORWARD--SENDER--NAME :TYPE STRING :DOCUMENTATION
"Sender's name for messages forwarded from users who disallow adding a link to their account in forwarded messages")
(FORWARD--DATE :INITARG :FORWARD--DATE :INITFORM NIL :ACCESSOR
TG-FORWARD--DATE :TYPE INTEGER :DOCUMENTATION
"For forwarded messages, date the original message was sent in Unix time")
(REPLY--TO--MESSAGE :INITARG :REPLY--TO--MESSAGE :INITFORM NIL
:ACCESSOR TG-REPLY--TO--MESSAGE :TYPE *MESSAGE :DOCUMENTATION
"For replies, 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.")
(EDIT--DATE :INITARG :EDIT--DATE :INITFORM NIL :ACCESSOR
TG-EDIT--DATE :TYPE INTEGER :DOCUMENTATION
"Date the message was last edited in Unix time")
(MEDIA--GROUP--ID :INITARG :MEDIA--GROUP--ID :INITFORM NIL :ACCESSOR
TG-MEDIA--GROUP--ID :TYPE STRING :DOCUMENTATION
"The unique identifier of a media message group this message belongs to")
(AUTHOR--SIGNATURE :INITARG :AUTHOR--SIGNATURE :INITFORM NIL
:ACCESSOR TG-AUTHOR--SIGNATURE :TYPE STRING :DOCUMENTATION
"Signature of the post author for messages in channels")
(TEXT :INITARG :TEXT :INITFORM NIL :ACCESSOR TG-TEXT :TYPE STRING
:DOCUMENTATION
"For text messages, the actual UTF-8 text of the message, 0-4096 characters.")
(ENTITIES :INITARG :ENTITIES :INITFORM NIL :ACCESSOR TG-ENTITIES
:TYPE (ARRAY *MESSAGE-ENTITY) :DOCUMENTATION
"For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text")
(CAPTION--ENTITIES :INITARG :CAPTION--ENTITIES :INITFORM NIL
:ACCESSOR TG-CAPTION--ENTITIES :TYPE (ARRAY *MESSAGE-ENTITY)
:DOCUMENTATION
"For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption")
(AUDIO :INITARG :AUDIO :INITFORM NIL :ACCESSOR TG-AUDIO :TYPE *AUDIO
:DOCUMENTATION
"Message is an audio file, information about the file")
(DOCUMENT :INITARG :DOCUMENT :INITFORM NIL :ACCESSOR TG-DOCUMENT
:TYPE *DOCUMENT :DOCUMENTATION
"Message is a general file, information about the file")
(ANIMATION :INITARG :ANIMATION :INITFORM NIL :ACCESSOR TG-ANIMATION
:TYPE *ANIMATION :DOCUMENTATION
"Message is an animation, information about the animation. For backward compatibility, when this field is set, the document field will also be set")
(GAME :INITARG :GAME :INITFORM NIL :ACCESSOR TG-GAME :TYPE *GAME
:DOCUMENTATION
"Message is a game, information about the game. More about games »")
(PHOTO :INITARG :PHOTO :INITFORM NIL :ACCESSOR TG-PHOTO :TYPE
(ARRAY *PHOTO-SIZE) :DOCUMENTATION
"Message is a photo, available sizes of the photo")
(STICKER :INITARG :STICKER :INITFORM NIL :ACCESSOR TG-STICKER :TYPE
*STICKER :DOCUMENTATION
"Message is a sticker, information about the sticker")
(VIDEO :INITARG :VIDEO :INITFORM NIL :ACCESSOR TG-VIDEO :TYPE *VIDEO
:DOCUMENTATION "Message is a video, information about the video")
(VOICE :INITARG :VOICE :INITFORM NIL :ACCESSOR TG-VOICE :TYPE *VOICE
:DOCUMENTATION
"Message is a voice message, information about the file")
(VIDEO--NOTE :INITARG :VIDEO--NOTE :INITFORM NIL :ACCESSOR
TG-VIDEO--NOTE :TYPE *VIDEO-NOTE :DOCUMENTATION
"Message is a video note, information about the video message")
(CAPTION :INITARG :CAPTION :INITFORM NIL :ACCESSOR TG-CAPTION :TYPE
STRING :DOCUMENTATION
"Caption for the animation, audio, document, photo, video or voice, 0-1024 characters")
(CONTACT :INITARG :CONTACT :INITFORM NIL :ACCESSOR TG-CONTACT :TYPE
*CONTACT :DOCUMENTATION
"Message is a shared contact, information about the contact")
(LOCATION :INITARG :LOCATION :INITFORM NIL :ACCESSOR TG-LOCATION
:TYPE *LOCATION :DOCUMENTATION
"Message is a shared location, information about the location")
(VENUE :INITARG :VENUE :INITFORM NIL :ACCESSOR TG-VENUE :TYPE *VENUE
:DOCUMENTATION "Message is a venue, information about the venue")
(POLL :INITARG :POLL :INITFORM NIL :ACCESSOR TG-POLL :TYPE *POLL
:DOCUMENTATION
"Message is a native poll, information about the poll")
(NEW--CHAT--MEMBERS :INITARG :NEW--CHAT--MEMBERS :INITFORM NIL
:ACCESSOR TG-NEW--CHAT--MEMBERS :TYPE (ARRAY *USER) :DOCUMENTATION
"New members that were added to the group or supergroup and information about them (the bot itself may be one of these members)")
(LEFT--CHAT--MEMBER :INITARG :LEFT--CHAT--MEMBER :INITFORM NIL
:ACCESSOR TG-LEFT--CHAT--MEMBER :TYPE *USER :DOCUMENTATION
"A member was removed from the group, information about them (this member may be the bot itself)")
(NEW--CHAT--TITLE :INITARG :NEW--CHAT--TITLE :INITFORM NIL :ACCESSOR
TG-NEW--CHAT--TITLE :TYPE STRING :DOCUMENTATION
"A chat title was changed to this value")
(NEW--CHAT--PHOTO :INITARG :NEW--CHAT--PHOTO :INITFORM NIL :ACCESSOR
TG-NEW--CHAT--PHOTO :TYPE (ARRAY *PHOTO-SIZE) :DOCUMENTATION
"A chat photo was change to this value")
(DELETE--CHAT--PHOTO :INITARG :DELETE--CHAT--PHOTO :INITFORM NIL
:ACCESSOR TG-DELETE--CHAT--PHOTO :TYPE NIL :DOCUMENTATION
"Service message: the chat photo was deleted")
(GROUP--CHAT--CREATED :INITARG :GROUP--CHAT--CREATED :INITFORM NIL
:ACCESSOR TG-GROUP--CHAT--CREATED :TYPE NIL :DOCUMENTATION
"Service message: the group has been created")
(SUPERGROUP--CHAT--CREATED :INITARG :SUPERGROUP--CHAT--CREATED
:INITFORM NIL :ACCESSOR TG-SUPERGROUP--CHAT--CREATED :TYPE NIL
:DOCUMENTATION
"Service message: the supergroup has been created. This field cant be received in a message coming through updates, because bot cant 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.")
(CHANNEL--CHAT--CREATED :INITARG :CHANNEL--CHAT--CREATED :INITFORM
NIL :ACCESSOR TG-CHANNEL--CHAT--CREATED :TYPE NIL :DOCUMENTATION
"Service message: the channel has been created. This field cant be received in a message coming through updates, because bot cant 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.")
(MIGRATE--TO--CHAT--ID :INITARG :MIGRATE--TO--CHAT--ID :INITFORM NIL
:ACCESSOR TG-MIGRATE--TO--CHAT--ID :TYPE INTEGER :DOCUMENTATION
"The group has been migrated to a supergroup with the specified identifier. This number 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.")
(MIGRATE--FROM--CHAT--ID :INITARG :MIGRATE--FROM--CHAT--ID :INITFORM
NIL :ACCESSOR TG-MIGRATE--FROM--CHAT--ID :TYPE INTEGER
:DOCUMENTATION
"The supergroup has been migrated from a group with the specified identifier. This number 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.")
(PINNED--MESSAGE :INITARG :PINNED--MESSAGE :INITFORM NIL :ACCESSOR
TG-PINNED--MESSAGE :TYPE *MESSAGE :DOCUMENTATION
"Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it is itself a reply.")
(INVOICE :INITARG :INVOICE :INITFORM NIL :ACCESSOR TG-INVOICE :TYPE
*INVOICE :DOCUMENTATION
"Message is an invoice for a payment, information about the invoice. More about payments »")
(SUCCESSFUL--PAYMENT :INITARG :SUCCESSFUL--PAYMENT :INITFORM NIL
:ACCESSOR TG-SUCCESSFUL--PAYMENT :TYPE *SUCCESSFUL-PAYMENT
:DOCUMENTATION
"Message is a service message about a successful payment, information about the payment. More about payments »")
(CONNECTED--WEBSITE :INITARG :CONNECTED--WEBSITE :INITFORM NIL
:ACCESSOR TG-CONNECTED--WEBSITE :TYPE STRING :DOCUMENTATION
"The domain name of the website on which the user has logged in. More about Telegram Login »")
(PASSPORT--DATA :INITARG :PASSPORT--DATA :INITFORM NIL :ACCESSOR
TG-PASSPORT--DATA :TYPE *PASSPORT-DATA :DOCUMENTATION
"Telegram Passport data")
(REPLY--MARKUP :INITARG :REPLY--MARKUP :INITFORM NIL :ACCESSOR
TG-REPLY--MARKUP :TYPE *INLINE-KEYBOARD-MARKUP :DOCUMENTATION
"Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons."))
(:DOCUMENTATION "https://core.telegram.org/bots/api#message
This object represents a message."))
(DEFCLASS *MESSAGE-ENTITY NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"MessageEntity")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the entity. Can be mention (@username), hashtag, cashtag, bot_command, url, email, phone_number, bold (bold text), italic (italic text), code (monowidth string), pre (monowidth block), text_link (for clickable text URLs), text_mention (for users without usernames)")
(OFFSET :INITARG :OFFSET :ACCESSOR TG-OFFSET :TYPE INTEGER
:DOCUMENTATION
"Offset in UTF-16 code units to the start of the entity")
(LENGTH :INITARG :LENGTH :ACCESSOR TG-LENGTH :TYPE INTEGER
:DOCUMENTATION "Length of the entity in UTF-16 code units")
(URL :INITARG :URL :INITFORM NIL :ACCESSOR TG-URL :TYPE STRING
:DOCUMENTATION
"For “text_link” only, url that will be opened after user taps on the text")
(USER :INITARG :USER :INITFORM NIL :ACCESSOR TG-USER :TYPE *USER
:DOCUMENTATION "For “text_mention” only, the mentioned user"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#messageentity
This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc."))
(DEFCLASS *PHOTO-SIZE NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "PhotoSize")
(FILE--ID :INITARG :FILE--ID :ACCESSOR TG-FILE--ID :TYPE STRING
:DOCUMENTATION "Identifier for this file")
(WIDTH :INITARG :WIDTH :ACCESSOR TG-WIDTH :TYPE INTEGER
:DOCUMENTATION "Photo width")
(HEIGHT :INITARG :HEIGHT :ACCESSOR TG-HEIGHT :TYPE INTEGER
:DOCUMENTATION "Photo height")
(FILE--SIZE :INITARG :FILE--SIZE :INITFORM NIL :ACCESSOR
TG-FILE--SIZE :TYPE INTEGER :DOCUMENTATION "File size"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#photosize
This object represents one size of a photo or a file / sticker thumbnail."))
(DEFCLASS *AUDIO NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "Audio")
(FILE--ID :INITARG :FILE--ID :ACCESSOR TG-FILE--ID :TYPE STRING
:DOCUMENTATION "Identifier for this file")
(DURATION :INITARG :DURATION :ACCESSOR TG-DURATION :TYPE INTEGER
:DOCUMENTATION
"Duration of the audio in seconds as defined by sender")
(PERFORMER :INITARG :PERFORMER :INITFORM NIL :ACCESSOR TG-PERFORMER
:TYPE STRING :DOCUMENTATION
"Performer of the audio as defined by sender or by audio tags")
(TITLE :INITARG :TITLE :INITFORM NIL :ACCESSOR TG-TITLE :TYPE STRING
:DOCUMENTATION
"Title of the audio as defined by sender or by audio tags")
(MIME--TYPE :INITARG :MIME--TYPE :INITFORM NIL :ACCESSOR
TG-MIME--TYPE :TYPE STRING :DOCUMENTATION
"MIME type of the file as defined by sender")
(FILE--SIZE :INITARG :FILE--SIZE :INITFORM NIL :ACCESSOR
TG-FILE--SIZE :TYPE INTEGER :DOCUMENTATION "File size")
(THUMB :INITARG :THUMB :INITFORM NIL :ACCESSOR TG-THUMB :TYPE
*PHOTO-SIZE :DOCUMENTATION
"Thumbnail of the album cover to which the music file belongs"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#audio
This object represents an audio file to be treated as music by the Telegram clients."))
(DEFCLASS *DOCUMENT NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "Document")
(FILE--ID :INITARG :FILE--ID :ACCESSOR TG-FILE--ID :TYPE STRING
:DOCUMENTATION "Identifier for this file")
(THUMB :INITARG :THUMB :INITFORM NIL :ACCESSOR TG-THUMB :TYPE
*PHOTO-SIZE :DOCUMENTATION
"Document thumbnail as defined by sender")
(FILE--NAME :INITARG :FILE--NAME :INITFORM NIL :ACCESSOR
TG-FILE--NAME :TYPE STRING :DOCUMENTATION
"Original filename as defined by sender")
(MIME--TYPE :INITARG :MIME--TYPE :INITFORM NIL :ACCESSOR
TG-MIME--TYPE :TYPE STRING :DOCUMENTATION
"MIME type of the file as defined by sender")
(FILE--SIZE :INITARG :FILE--SIZE :INITFORM NIL :ACCESSOR
TG-FILE--SIZE :TYPE INTEGER :DOCUMENTATION "File size"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#document
This object represents a general file (as opposed to photos, voice messages and audio files)."))
(DEFCLASS *VIDEO NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "Video")
(FILE--ID :INITARG :FILE--ID :ACCESSOR TG-FILE--ID :TYPE STRING
:DOCUMENTATION "Identifier for this file")
(WIDTH :INITARG :WIDTH :ACCESSOR TG-WIDTH :TYPE INTEGER
:DOCUMENTATION "Video width as defined by sender")
(HEIGHT :INITARG :HEIGHT :ACCESSOR TG-HEIGHT :TYPE INTEGER
:DOCUMENTATION "Video height as defined by sender")
(DURATION :INITARG :DURATION :ACCESSOR TG-DURATION :TYPE INTEGER
:DOCUMENTATION
"Duration of the video in seconds as defined by sender")
(THUMB :INITARG :THUMB :INITFORM NIL :ACCESSOR TG-THUMB :TYPE
*PHOTO-SIZE :DOCUMENTATION "Video thumbnail")
(MIME--TYPE :INITARG :MIME--TYPE :INITFORM NIL :ACCESSOR
TG-MIME--TYPE :TYPE STRING :DOCUMENTATION
"Mime type of a file as defined by sender")
(FILE--SIZE :INITARG :FILE--SIZE :INITFORM NIL :ACCESSOR
TG-FILE--SIZE :TYPE INTEGER :DOCUMENTATION "File size"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#video
This object represents a video file."))
(DEFCLASS *ANIMATION NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "Animation")
(FILE--ID :INITARG :FILE--ID :ACCESSOR TG-FILE--ID :TYPE STRING
:DOCUMENTATION "Identifier for this file")
(WIDTH :INITARG :WIDTH :ACCESSOR TG-WIDTH :TYPE INTEGER
:DOCUMENTATION "Video width as defined by sender")
(HEIGHT :INITARG :HEIGHT :ACCESSOR TG-HEIGHT :TYPE INTEGER
:DOCUMENTATION "Video height as defined by sender")
(DURATION :INITARG :DURATION :ACCESSOR TG-DURATION :TYPE INTEGER
:DOCUMENTATION
"Duration of the video in seconds as defined by sender")
(THUMB :INITARG :THUMB :INITFORM NIL :ACCESSOR TG-THUMB :TYPE
*PHOTO-SIZE :DOCUMENTATION
"Animation thumbnail as defined by sender")
(FILE--NAME :INITARG :FILE--NAME :INITFORM NIL :ACCESSOR
TG-FILE--NAME :TYPE STRING :DOCUMENTATION
"Original animation filename as defined by sender")
(MIME--TYPE :INITARG :MIME--TYPE :INITFORM NIL :ACCESSOR
TG-MIME--TYPE :TYPE STRING :DOCUMENTATION
"MIME type of the file as defined by sender")
(FILE--SIZE :INITARG :FILE--SIZE :INITFORM NIL :ACCESSOR
TG-FILE--SIZE :TYPE INTEGER :DOCUMENTATION "File size"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#animation
This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound)."))
(DEFCLASS *VOICE NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "Voice")
(FILE--ID :INITARG :FILE--ID :ACCESSOR TG-FILE--ID :TYPE STRING
:DOCUMENTATION "Identifier for this file")
(DURATION :INITARG :DURATION :ACCESSOR TG-DURATION :TYPE INTEGER
:DOCUMENTATION
"Duration of the audio in seconds as defined by sender")
(MIME--TYPE :INITARG :MIME--TYPE :INITFORM NIL :ACCESSOR
TG-MIME--TYPE :TYPE STRING :DOCUMENTATION
"MIME type of the file as defined by sender")
(FILE--SIZE :INITARG :FILE--SIZE :INITFORM NIL :ACCESSOR
TG-FILE--SIZE :TYPE INTEGER :DOCUMENTATION "File size"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#voice
This object represents a voice note."))
(DEFCLASS *VIDEO-NOTE NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "VideoNote")
(FILE--ID :INITARG :FILE--ID :ACCESSOR TG-FILE--ID :TYPE STRING
:DOCUMENTATION "Identifier for this file")
(LENGTH :INITARG :LENGTH :ACCESSOR TG-LENGTH :TYPE INTEGER
:DOCUMENTATION
"Video width and height (diameter of the video message) as defined by sender")
(DURATION :INITARG :DURATION :ACCESSOR TG-DURATION :TYPE INTEGER
:DOCUMENTATION
"Duration of the video in seconds as defined by sender")
(THUMB :INITARG :THUMB :INITFORM NIL :ACCESSOR TG-THUMB :TYPE
*PHOTO-SIZE :DOCUMENTATION "Video thumbnail")
(FILE--SIZE :INITARG :FILE--SIZE :INITFORM NIL :ACCESSOR
TG-FILE--SIZE :TYPE INTEGER :DOCUMENTATION "File size"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#videonote
This object represents a video message (available in Telegram apps as of v.4.0)."))
(DEFCLASS *CONTACT NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "Contact")
(PHONE--NUMBER :INITARG :PHONE--NUMBER :ACCESSOR TG-PHONE--NUMBER
:TYPE STRING :DOCUMENTATION "Contact's phone number")
(FIRST--NAME :INITARG :FIRST--NAME :ACCESSOR TG-FIRST--NAME :TYPE
STRING :DOCUMENTATION "Contact's first name")
(LAST--NAME :INITARG :LAST--NAME :INITFORM NIL :ACCESSOR
TG-LAST--NAME :TYPE STRING :DOCUMENTATION "Contact's last name")
(USER--ID :INITARG :USER--ID :INITFORM NIL :ACCESSOR TG-USER--ID
:TYPE INTEGER :DOCUMENTATION
"Contact's user identifier in Telegram")
(VCARD :INITARG :VCARD :INITFORM NIL :ACCESSOR TG-VCARD :TYPE STRING
:DOCUMENTATION
"Additional data about the contact in the form of a vCard"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#contact
This object represents a phone contact."))
(DEFCLASS *LOCATION NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "Location")
(LONGITUDE :INITARG :LONGITUDE :ACCESSOR TG-LONGITUDE :TYPE *FLOAT
:DOCUMENTATION "Longitude as defined by sender")
(LATITUDE :INITARG :LATITUDE :ACCESSOR TG-LATITUDE :TYPE *FLOAT
:DOCUMENTATION "Latitude as defined by sender"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#location
This object represents a point on the map."))
(DEFCLASS *VENUE NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "Venue")
(LOCATION :INITARG :LOCATION :ACCESSOR TG-LOCATION :TYPE *LOCATION
:DOCUMENTATION "Venue location")
(TITLE :INITARG :TITLE :ACCESSOR TG-TITLE :TYPE STRING
:DOCUMENTATION "Name of the venue")
(ADDRESS :INITARG :ADDRESS :ACCESSOR TG-ADDRESS :TYPE STRING
:DOCUMENTATION "Address of the venue")
(FOURSQUARE--ID :INITARG :FOURSQUARE--ID :INITFORM NIL :ACCESSOR
TG-FOURSQUARE--ID :TYPE STRING :DOCUMENTATION
"Foursquare identifier of the venue")
(FOURSQUARE--TYPE :INITARG :FOURSQUARE--TYPE :INITFORM NIL :ACCESSOR
TG-FOURSQUARE--TYPE :TYPE STRING :DOCUMENTATION
"Foursquare type of the venue. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#venue
This object represents a venue."))
(DEFCLASS *POLL-OPTION NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "PollOption")
(TEXT :INITARG :TEXT :ACCESSOR TG-TEXT :TYPE STRING :DOCUMENTATION
"Option text, 1-100 characters")
(VOTER--COUNT :INITARG :VOTER--COUNT :ACCESSOR TG-VOTER--COUNT :TYPE
INTEGER :DOCUMENTATION
"Number of users that voted for this option"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#polloption
This object contains information about one answer option in a poll."))
(DEFCLASS *POLL NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "Poll")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE STRING :DOCUMENTATION
"Unique poll identifier")
(QUESTION :INITARG :QUESTION :ACCESSOR TG-QUESTION :TYPE STRING
:DOCUMENTATION "Poll question, 1-255 characters")
(OPTIONS :INITARG :OPTIONS :ACCESSOR TG-OPTIONS :TYPE
(ARRAY *POLL-OPTION) :DOCUMENTATION "List of poll options")
(IS--CLOSED :INITARG :IS--CLOSED :ACCESSOR TG-IS--CLOSED :TYPE
BOOLEAN :DOCUMENTATION "True, if the poll is closed"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#poll
This object contains information about a poll."))
(DEFCLASS *USER-PROFILE-PHOTOS NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"UserProfilePhotos")
(TOTAL--COUNT :INITARG :TOTAL--COUNT :ACCESSOR TG-TOTAL--COUNT :TYPE
INTEGER :DOCUMENTATION
"Total number of profile pictures the target user has")
(PHOTOS :INITARG :PHOTOS :ACCESSOR TG-PHOTOS :TYPE (ARRAY *ARRAY)
:DOCUMENTATION
"Requested profile pictures (in up to 4 sizes each)"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#userprofilephotos
This object represent a user's profile pictures."))
(DEFCLASS *FILE NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "File")
(FILE--ID :INITARG :FILE--ID :ACCESSOR TG-FILE--ID :TYPE STRING
:DOCUMENTATION "Identifier for this file")
(FILE--SIZE :INITARG :FILE--SIZE :INITFORM NIL :ACCESSOR
TG-FILE--SIZE :TYPE INTEGER :DOCUMENTATION "File size, if known")
(FILE--PATH :INITARG :FILE--PATH :INITFORM NIL :ACCESSOR
TG-FILE--PATH :TYPE STRING :DOCUMENTATION
"File path. Use https://api.telegram.org/file/bot<token>/<file_path> to get the file."))
(:DOCUMENTATION "https://core.telegram.org/bots/api#file
This object represents a file ready to be downloaded. The file can be downloaded via the link https://api.telegram.org/file/bot<token>/<file_path>. 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."))
(DEFCLASS *REPLY-KEYBOARD-MARKUP NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"ReplyKeyboardMarkup")
(KEYBOARD :INITARG :KEYBOARD :ACCESSOR TG-KEYBOARD :TYPE
(ARRAY *ARRAY) :DOCUMENTATION
"Array of button rows, each represented by an Array of KeyboardButton objects")
(RESIZE--KEYBOARD :INITARG :RESIZE--KEYBOARD :INITFORM NIL :ACCESSOR
TG-RESIZE--KEYBOARD :TYPE BOOLEAN :DOCUMENTATION
"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.")
(ONE--TIME--KEYBOARD :INITARG :ONE--TIME--KEYBOARD :INITFORM NIL
:ACCESSOR TG-ONE--TIME--KEYBOARD :TYPE BOOLEAN :DOCUMENTATION
"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.")
(SELECTIVE :INITARG :SELECTIVE :INITFORM NIL :ACCESSOR TG-SELECTIVE
:TYPE BOOLEAN :DOCUMENTATION
"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 (has reply_to_message_id), sender of the original message.Example: A user requests to change the bots language, bot replies to the request with a keyboard to select the new language. Other users in the group dont see the keyboard."))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#replykeyboardmarkup
This object represents a custom keyboard with reply options (see Introduction to bots for details and examples)."))
(DEFCLASS *KEYBOARD-BUTTON NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"KeyboardButton")
(TEXT :INITARG :TEXT :ACCESSOR TG-TEXT :TYPE STRING :DOCUMENTATION
"Text of the button. If none of the optional fields are used, it will be sent as a message when the button is pressed")
(REQUEST--CONTACT :INITARG :REQUEST--CONTACT :INITFORM NIL :ACCESSOR
TG-REQUEST--CONTACT :TYPE BOOLEAN :DOCUMENTATION
"If True, the user's phone number will be sent as a contact when the button is pressed. Available in private chats only")
(REQUEST--LOCATION :INITARG :REQUEST--LOCATION :INITFORM NIL
:ACCESSOR TG-REQUEST--LOCATION :TYPE BOOLEAN :DOCUMENTATION
"If True, the user's current location will be sent when the button is pressed. Available in private chats only"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#keyboardbutton
This object represents one button of the reply keyboard. For simple text buttons String can be used instead of this object to specify text of the button. Optional fields are mutually exclusive."))
(DEFCLASS *REPLY-KEYBOARD-REMOVE NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"ReplyKeyboardRemove")
(REMOVE--KEYBOARD :INITARG :REMOVE--KEYBOARD :ACCESSOR
TG-REMOVE--KEYBOARD :TYPE NIL :DOCUMENTATION
"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)")
(SELECTIVE :INITARG :SELECTIVE :INITFORM NIL :ACCESSOR TG-SELECTIVE
:TYPE BOOLEAN :DOCUMENTATION
"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 (has reply_to_message_id), sender of the original message.Example: 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."))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#replykeyboardremove
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)."))
(DEFCLASS *INLINE-KEYBOARD-MARKUP NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InlineKeyboardMarkup")
(INLINE--KEYBOARD :INITARG :INLINE--KEYBOARD :ACCESSOR
TG-INLINE--KEYBOARD :TYPE (ARRAY *ARRAY) :DOCUMENTATION
"Array of button rows, each represented by an Array of InlineKeyboardButton objects"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inlinekeyboardmarkup
This object represents an inline keyboard that appears right next to the message it belongs to."))
(DEFCLASS *INLINE-KEYBOARD-BUTTON NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InlineKeyboardButton")
(TEXT :INITARG :TEXT :ACCESSOR TG-TEXT :TYPE STRING :DOCUMENTATION
"Label text on the button")
(URL :INITARG :URL :INITFORM NIL :ACCESSOR TG-URL :TYPE STRING
:DOCUMENTATION
"HTTP or tg:// url to be opened when button is pressed")
(LOGIN--URL :INITARG :LOGIN--URL :INITFORM NIL :ACCESSOR
TG-LOGIN--URL :TYPE *LOGIN-URL :DOCUMENTATION
"An HTTP URL used to automatically authorize the user. Can be used as a replacement for the Telegram Login Widget.")
(CALLBACK--DATA :INITARG :CALLBACK--DATA :INITFORM NIL :ACCESSOR
TG-CALLBACK--DATA :TYPE STRING :DOCUMENTATION
"Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes")
(SWITCH--INLINE--QUERY :INITARG :SWITCH--INLINE--QUERY :INITFORM NIL
:ACCESSOR TG-SWITCH--INLINE--QUERY :TYPE STRING :DOCUMENTATION
"If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bots username and the specified inline query in the input field. Can be empty, in which case just the bots username will be inserted.Note: This offers an easy way for users to start using your bot in inline mode when they are currently in a private chat with it. Especially useful when combined with switch_pm… actions in this case the user will be automatically returned to the chat they switched from, skipping the chat selection screen.")
(SWITCH--INLINE--QUERY--CURRENT--CHAT :INITARG
:SWITCH--INLINE--QUERY--CURRENT--CHAT :INITFORM NIL :ACCESSOR
TG-SWITCH--INLINE--QUERY--CURRENT--CHAT :TYPE STRING :DOCUMENTATION
"If set, pressing the button will insert the bots username and the specified inline query in the current chat's input field. Can be empty, in which case only the bots username will be inserted.This 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.")
(CALLBACK--GAME :INITARG :CALLBACK--GAME :INITFORM NIL :ACCESSOR
TG-CALLBACK--GAME :TYPE *CALLBACK-GAME :DOCUMENTATION
"Description of the game that will be launched when the user presses the button.NOTE: This type of button must always be the first button in the first row.")
(PAY :INITARG :PAY :INITFORM NIL :ACCESSOR TG-PAY :TYPE BOOLEAN
:DOCUMENTATION
"Specify True, to send a Pay button.NOTE: This type of button must always be the first button in the first row."))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inlinekeyboardbutton
This object represents one button of an inline keyboard. You must use exactly one of the optional fields."))
(DEFCLASS *LOGIN-URL NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "LoginUrl")
(URL :INITARG :URL :ACCESSOR TG-URL :TYPE STRING :DOCUMENTATION
"An HTTP 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.NOTE: 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.")
(FORWARD--TEXT :INITARG :FORWARD--TEXT :INITFORM NIL :ACCESSOR
TG-FORWARD--TEXT :TYPE STRING :DOCUMENTATION
"New text of the button in forwarded messages.")
(BOT--USERNAME :INITARG :BOT--USERNAME :INITFORM NIL :ACCESSOR
TG-BOT--USERNAME :TYPE STRING :DOCUMENTATION
"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.")
(REQUEST--WRITE--ACCESS :INITARG :REQUEST--WRITE--ACCESS :INITFORM
NIL :ACCESSOR TG-REQUEST--WRITE--ACCESS :TYPE BOOLEAN
:DOCUMENTATION
"Pass True to request the permission for your bot to send messages to the user."))
(:DOCUMENTATION "https://core.telegram.org/bots/api#loginurl
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:"))
(DEFCLASS *CALLBACK-QUERY NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"CallbackQuery")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE STRING :DOCUMENTATION
"Unique identifier for this query")
(FROM :INITARG :FROM :ACCESSOR TG-FROM :TYPE *USER :DOCUMENTATION
"Sender")
(MESSAGE :INITARG :MESSAGE :INITFORM NIL :ACCESSOR TG-MESSAGE :TYPE
*MESSAGE :DOCUMENTATION
"Message with the callback button that originated the query. Note that message content and message date will not be available if the message is too old")
(INLINE--MESSAGE--ID :INITARG :INLINE--MESSAGE--ID :INITFORM NIL
:ACCESSOR TG-INLINE--MESSAGE--ID :TYPE STRING :DOCUMENTATION
"Identifier of the message sent via the bot in inline mode, that originated the query.")
(CHAT--INSTANCE :INITARG :CHAT--INSTANCE :ACCESSOR TG-CHAT--INSTANCE
:TYPE STRING :DOCUMENTATION
"Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.")
(DATA :INITARG :DATA :INITFORM NIL :ACCESSOR TG-DATA :TYPE STRING
:DOCUMENTATION
"Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field.")
(GAME--SHORT--NAME :INITARG :GAME--SHORT--NAME :INITFORM NIL
:ACCESSOR TG-GAME--SHORT--NAME :TYPE STRING :DOCUMENTATION
"Short name of a Game to be returned, serves as the unique identifier for the game"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#callbackquery
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."))
(DEFCLASS *FORCE-REPLY NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "ForceReply")
(FORCE--REPLY :INITARG :FORCE--REPLY :ACCESSOR TG-FORCE--REPLY :TYPE
NIL :DOCUMENTATION
"Shows reply interface to the user, as if they manually selected the bots message and tapped Reply'")
(SELECTIVE :INITARG :SELECTIVE :INITFORM NIL :ACCESSOR TG-SELECTIVE
:TYPE BOOLEAN :DOCUMENTATION
"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 (has reply_to_message_id), sender of the original message."))
(:DOCUMENTATION "https://core.telegram.org/bots/api#forcereply
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 bots 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."))
(DEFCLASS *CHAT-PHOTO NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "ChatPhoto")
(SMALL--FILE--ID :INITARG :SMALL--FILE--ID :ACCESSOR
TG-SMALL--FILE--ID :TYPE STRING :DOCUMENTATION
"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.")
(BIG--FILE--ID :INITARG :BIG--FILE--ID :ACCESSOR TG-BIG--FILE--ID
:TYPE STRING :DOCUMENTATION
"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."))
(:DOCUMENTATION "https://core.telegram.org/bots/api#chatphoto
This object represents a chat photo."))
(DEFCLASS *CHAT-MEMBER NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "ChatMember")
(USER :INITARG :USER :ACCESSOR TG-USER :TYPE *USER :DOCUMENTATION
"Information about the user")
(STATUS :INITARG :STATUS :ACCESSOR TG-STATUS :TYPE STRING
:DOCUMENTATION
"The member's status in the chat. Can be “creator”, “administrator”, “member”, “restricted”, “left” or “kicked”")
(UNTIL--DATE :INITARG :UNTIL--DATE :INITFORM NIL :ACCESSOR
TG-UNTIL--DATE :TYPE INTEGER :DOCUMENTATION
"Restricted and kicked only. Date when restrictions will be lifted for this user; unix time")
(CAN--BE--EDITED :INITARG :CAN--BE--EDITED :INITFORM NIL :ACCESSOR
TG-CAN--BE--EDITED :TYPE BOOLEAN :DOCUMENTATION
"Administrators only. True, if the bot is allowed to edit administrator privileges of that user")
(CAN--POST--MESSAGES :INITARG :CAN--POST--MESSAGES :INITFORM NIL
:ACCESSOR TG-CAN--POST--MESSAGES :TYPE BOOLEAN :DOCUMENTATION
"Administrators only. True, if the administrator can post in the channel; channels only")
(CAN--EDIT--MESSAGES :INITARG :CAN--EDIT--MESSAGES :INITFORM NIL
:ACCESSOR TG-CAN--EDIT--MESSAGES :TYPE BOOLEAN :DOCUMENTATION
"Administrators only. True, if the administrator can edit messages of other users and can pin messages; channels only")
(CAN--DELETE--MESSAGES :INITARG :CAN--DELETE--MESSAGES :INITFORM NIL
:ACCESSOR TG-CAN--DELETE--MESSAGES :TYPE BOOLEAN :DOCUMENTATION
"Administrators only. True, if the administrator can delete messages of other users")
(CAN--RESTRICT--MEMBERS :INITARG :CAN--RESTRICT--MEMBERS :INITFORM
NIL :ACCESSOR TG-CAN--RESTRICT--MEMBERS :TYPE BOOLEAN
:DOCUMENTATION
"Administrators only. True, if the administrator can restrict, ban or unban chat members")
(CAN--PROMOTE--MEMBERS :INITARG :CAN--PROMOTE--MEMBERS :INITFORM NIL
:ACCESSOR TG-CAN--PROMOTE--MEMBERS :TYPE BOOLEAN :DOCUMENTATION
"Administrators only. True, if the administrator can add new administrators with a subset of his own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user)")
(CAN--CHANGE--INFO :INITARG :CAN--CHANGE--INFO :INITFORM NIL
:ACCESSOR TG-CAN--CHANGE--INFO :TYPE BOOLEAN :DOCUMENTATION
"Administrators and restricted only. True, if the user is allowed to change the chat title, photo and other settings")
(CAN--INVITE--USERS :INITARG :CAN--INVITE--USERS :INITFORM NIL
:ACCESSOR TG-CAN--INVITE--USERS :TYPE BOOLEAN :DOCUMENTATION
"Administrators and restricted only. True, if the user is allowed to invite new users to the chat")
(CAN--PIN--MESSAGES :INITARG :CAN--PIN--MESSAGES :INITFORM NIL
:ACCESSOR TG-CAN--PIN--MESSAGES :TYPE BOOLEAN :DOCUMENTATION
"Administrators and restricted only. True, if the user is allowed to pin messages; groups and supergroups only")
(IS--MEMBER :INITARG :IS--MEMBER :INITFORM NIL :ACCESSOR
TG-IS--MEMBER :TYPE BOOLEAN :DOCUMENTATION
"Restricted only. True, if the user is a member of the chat at the moment of the request")
(CAN--SEND--MESSAGES :INITARG :CAN--SEND--MESSAGES :INITFORM NIL
:ACCESSOR TG-CAN--SEND--MESSAGES :TYPE BOOLEAN :DOCUMENTATION
"Restricted only. True, if the user is allowed to send text messages, contacts, locations and venues")
(CAN--SEND--MEDIA--MESSAGES :INITARG :CAN--SEND--MEDIA--MESSAGES
:INITFORM NIL :ACCESSOR TG-CAN--SEND--MEDIA--MESSAGES :TYPE BOOLEAN
:DOCUMENTATION
"Restricted only. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes")
(CAN--SEND--POLLS :INITARG :CAN--SEND--POLLS :INITFORM NIL :ACCESSOR
TG-CAN--SEND--POLLS :TYPE BOOLEAN :DOCUMENTATION
"Restricted only. True, if the user is allowed to send polls")
(CAN--SEND--OTHER--MESSAGES :INITARG :CAN--SEND--OTHER--MESSAGES
:INITFORM NIL :ACCESSOR TG-CAN--SEND--OTHER--MESSAGES :TYPE BOOLEAN
:DOCUMENTATION
"Restricted only. True, if the user is allowed to send animations, games, stickers and use inline bots")
(CAN--ADD--WEB--PAGE--PREVIEWS :INITARG
:CAN--ADD--WEB--PAGE--PREVIEWS :INITFORM NIL :ACCESSOR
TG-CAN--ADD--WEB--PAGE--PREVIEWS :TYPE BOOLEAN :DOCUMENTATION
"Restricted only. True, if the user is allowed to add web page previews to their messages"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#chatmember
This object contains information about one member of a chat."))
(DEFCLASS *CHAT-PERMISSIONS NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"ChatPermissions")
(CAN--SEND--MESSAGES :INITARG :CAN--SEND--MESSAGES :INITFORM NIL
:ACCESSOR TG-CAN--SEND--MESSAGES :TYPE BOOLEAN :DOCUMENTATION
"True, if the user is allowed to send text messages, contacts, locations and venues")
(CAN--SEND--MEDIA--MESSAGES :INITARG :CAN--SEND--MEDIA--MESSAGES
:INITFORM NIL :ACCESSOR TG-CAN--SEND--MEDIA--MESSAGES :TYPE BOOLEAN
:DOCUMENTATION
"True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages")
(CAN--SEND--POLLS :INITARG :CAN--SEND--POLLS :INITFORM NIL :ACCESSOR
TG-CAN--SEND--POLLS :TYPE BOOLEAN :DOCUMENTATION
"True, if the user is allowed to send polls, implies can_send_messages")
(CAN--SEND--OTHER--MESSAGES :INITARG :CAN--SEND--OTHER--MESSAGES
:INITFORM NIL :ACCESSOR TG-CAN--SEND--OTHER--MESSAGES :TYPE BOOLEAN
:DOCUMENTATION
"True, if the user is allowed to send animations, games, stickers and use inline bots, implies can_send_media_messages")
(CAN--ADD--WEB--PAGE--PREVIEWS :INITARG
:CAN--ADD--WEB--PAGE--PREVIEWS :INITFORM NIL :ACCESSOR
TG-CAN--ADD--WEB--PAGE--PREVIEWS :TYPE BOOLEAN :DOCUMENTATION
"True, if the user is allowed to add web page previews to their messages, implies can_send_media_messages")
(CAN--CHANGE--INFO :INITARG :CAN--CHANGE--INFO :INITFORM NIL
:ACCESSOR TG-CAN--CHANGE--INFO :TYPE BOOLEAN :DOCUMENTATION
"True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups")
(CAN--INVITE--USERS :INITARG :CAN--INVITE--USERS :INITFORM NIL
:ACCESSOR TG-CAN--INVITE--USERS :TYPE BOOLEAN :DOCUMENTATION
"True, if the user is allowed to invite new users to the chat")
(CAN--PIN--MESSAGES :INITARG :CAN--PIN--MESSAGES :INITFORM NIL
:ACCESSOR TG-CAN--PIN--MESSAGES :TYPE BOOLEAN :DOCUMENTATION
"True, if the user is allowed to pin messages. Ignored in public supergroups"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#chatpermissions
Describes actions that a non-administrator user is allowed to take in a chat."))
(DEFCLASS *RESPONSE-PARAMETERS NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"ResponseParameters")
(MIGRATE--TO--CHAT--ID :INITARG :MIGRATE--TO--CHAT--ID :INITFORM NIL
:ACCESSOR TG-MIGRATE--TO--CHAT--ID :TYPE INTEGER :DOCUMENTATION
"The group has been migrated to a supergroup with the specified identifier. This number 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.")
(RETRY--AFTER :INITARG :RETRY--AFTER :INITFORM NIL :ACCESSOR
TG-RETRY--AFTER :TYPE INTEGER :DOCUMENTATION
"In case of exceeding flood control, the number of seconds left to wait before the request can be repeated"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#responseparameters
Contains information about why a request was unsuccessful."))
(DEFUN *INPUT-MEDIA (BOT)
"https://core.telegram.org/bots/api#inputmedia
This object represents the content of a media message to be sent. It should be one of"
(LET ((OPTIONS (LIST)))
(MAKE-REQUEST BOT "InputMedia" OPTIONS)))
(DEFCLASS *INPUT-MEDIA-PHOTO NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InputMediaPhoto")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be photo")
(MEDIA :INITARG :MEDIA :ACCESSOR TG-MEDIA :TYPE STRING
:DOCUMENTATION
"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://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files »")
(CAPTION :INITARG :CAPTION :INITFORM NIL :ACCESSOR TG-CAPTION :TYPE
STRING :DOCUMENTATION
"Caption of the photo to be sent, 0-1024 characters")
(PARSE--MODE :INITARG :PARSE--MODE :INITFORM NIL :ACCESSOR
TG-PARSE--MODE :TYPE STRING :DOCUMENTATION
"Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption."))
(:DOCUMENTATION "https://core.telegram.org/bots/api#inputmediaphoto
Represents a photo to be sent."))
(DEFCLASS *INPUT-MEDIA-VIDEO NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InputMediaVideo")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be video")
(MEDIA :INITARG :MEDIA :ACCESSOR TG-MEDIA :TYPE STRING
:DOCUMENTATION
"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://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files »")
(THUMB :INITARG :THUMB :INITFORM NIL :ACCESSOR TG-THUMB :TYPE
(OR *INPUT-FILE STRING) :DOCUMENTATION
"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 thumbnails width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails cant be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »")
(CAPTION :INITARG :CAPTION :INITFORM NIL :ACCESSOR TG-CAPTION :TYPE
STRING :DOCUMENTATION
"Caption of the video to be sent, 0-1024 characters")
(PARSE--MODE :INITARG :PARSE--MODE :INITFORM NIL :ACCESSOR
TG-PARSE--MODE :TYPE STRING :DOCUMENTATION
"Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.")
(WIDTH :INITARG :WIDTH :INITFORM NIL :ACCESSOR TG-WIDTH :TYPE
INTEGER :DOCUMENTATION "Video width")
(HEIGHT :INITARG :HEIGHT :INITFORM NIL :ACCESSOR TG-HEIGHT :TYPE
INTEGER :DOCUMENTATION "Video height")
(DURATION :INITARG :DURATION :INITFORM NIL :ACCESSOR TG-DURATION
:TYPE INTEGER :DOCUMENTATION "Video duration")
(SUPPORTS--STREAMING :INITARG :SUPPORTS--STREAMING :INITFORM NIL
:ACCESSOR TG-SUPPORTS--STREAMING :TYPE BOOLEAN :DOCUMENTATION
"Pass True, if the uploaded video is suitable for streaming"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#inputmediavideo
Represents a video to be sent."))
(DEFCLASS *INPUT-MEDIA-ANIMATION NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InputMediaAnimation")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be animation")
(MEDIA :INITARG :MEDIA :ACCESSOR TG-MEDIA :TYPE STRING
:DOCUMENTATION
"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://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files »")
(THUMB :INITARG :THUMB :INITFORM NIL :ACCESSOR TG-THUMB :TYPE
(OR *INPUT-FILE STRING) :DOCUMENTATION
"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 thumbnails width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails cant be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »")
(CAPTION :INITARG :CAPTION :INITFORM NIL :ACCESSOR TG-CAPTION :TYPE
STRING :DOCUMENTATION
"Caption of the animation to be sent, 0-1024 characters")
(PARSE--MODE :INITARG :PARSE--MODE :INITFORM NIL :ACCESSOR
TG-PARSE--MODE :TYPE STRING :DOCUMENTATION
"Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.")
(WIDTH :INITARG :WIDTH :INITFORM NIL :ACCESSOR TG-WIDTH :TYPE
INTEGER :DOCUMENTATION "Animation width")
(HEIGHT :INITARG :HEIGHT :INITFORM NIL :ACCESSOR TG-HEIGHT :TYPE
INTEGER :DOCUMENTATION "Animation height")
(DURATION :INITARG :DURATION :INITFORM NIL :ACCESSOR TG-DURATION
:TYPE INTEGER :DOCUMENTATION "Animation duration"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inputmediaanimation
Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent."))
(DEFCLASS *INPUT-MEDIA-AUDIO NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InputMediaAudio")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be audio")
(MEDIA :INITARG :MEDIA :ACCESSOR TG-MEDIA :TYPE STRING
:DOCUMENTATION
"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://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files »")
(THUMB :INITARG :THUMB :INITFORM NIL :ACCESSOR TG-THUMB :TYPE
(OR *INPUT-FILE STRING) :DOCUMENTATION
"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 thumbnails width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails cant be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »")
(CAPTION :INITARG :CAPTION :INITFORM NIL :ACCESSOR TG-CAPTION :TYPE
STRING :DOCUMENTATION
"Caption of the audio to be sent, 0-1024 characters")
(PARSE--MODE :INITARG :PARSE--MODE :INITFORM NIL :ACCESSOR
TG-PARSE--MODE :TYPE STRING :DOCUMENTATION
"Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.")
(DURATION :INITARG :DURATION :INITFORM NIL :ACCESSOR TG-DURATION
:TYPE INTEGER :DOCUMENTATION "Duration of the audio in seconds")
(PERFORMER :INITARG :PERFORMER :INITFORM NIL :ACCESSOR TG-PERFORMER
:TYPE STRING :DOCUMENTATION "Performer of the audio")
(TITLE :INITARG :TITLE :INITFORM NIL :ACCESSOR TG-TITLE :TYPE STRING
:DOCUMENTATION "Title of the audio"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#inputmediaaudio
Represents an audio file to be treated as music to be sent."))
(DEFCLASS *INPUT-MEDIA-DOCUMENT NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InputMediaDocument")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be document")
(MEDIA :INITARG :MEDIA :ACCESSOR TG-MEDIA :TYPE STRING
:DOCUMENTATION
"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://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files »")
(THUMB :INITARG :THUMB :INITFORM NIL :ACCESSOR TG-THUMB :TYPE
(OR *INPUT-FILE STRING) :DOCUMENTATION
"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 thumbnails width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails cant be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »")
(CAPTION :INITARG :CAPTION :INITFORM NIL :ACCESSOR TG-CAPTION :TYPE
STRING :DOCUMENTATION
"Caption of the document to be sent, 0-1024 characters")
(PARSE--MODE :INITARG :PARSE--MODE :INITFORM NIL :ACCESSOR
TG-PARSE--MODE :TYPE STRING :DOCUMENTATION
"Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption."))
(:DOCUMENTATION "https://core.telegram.org/bots/api#inputmediadocument
Represents a general file to be sent."))
;----Available methods----
(DEFUN GET-ME (BOT)
"https://core.telegram.org/bots/api#getme
A simple method for testing your bot's auth token. Requires no parameters. Returns basic information about the bot in form of a User object."
(LET ((OPTIONS (LIST)))
(MAKE-REQUEST BOT "getMe" OPTIONS :RETURN-TYPE '*USER)))
(DEFUN SEND-MESSAGE
(BOT CHAT--ID TEXT
&KEY PARSE--MODE DISABLE--WEB--PAGE--PREVIEW DISABLE--NOTIFICATION
REPLY--TO--MESSAGE--ID REPLY--MARKUP)
"https://core.telegram.org/bots/api#sendmessage
Use this method to send text messages. On success, the sent Message is returned."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE TEXT STRING)
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID) (CONS :TEXT TEXT))))
(WHEN PARSE--MODE (NCONC OPTIONS (LIST (CONS :PARSE_MODE PARSE--MODE))))
(WHEN DISABLE--WEB--PAGE--PREVIEW
(NCONC OPTIONS
(LIST
(CONS :DISABLE_WEB_PAGE_PREVIEW DISABLE--WEB--PAGE--PREVIEW))))
(WHEN DISABLE--NOTIFICATION
(NCONC OPTIONS
(LIST (CONS :DISABLE_NOTIFICATION DISABLE--NOTIFICATION))))
(WHEN REPLY--TO--MESSAGE--ID
(NCONC OPTIONS
(LIST (CONS :REPLY_TO_MESSAGE_ID REPLY--TO--MESSAGE--ID))))
(WHEN REPLY--MARKUP
(NCONC OPTIONS (LIST (CONS :REPLY_MARKUP REPLY--MARKUP))))
(MAKE-REQUEST BOT "sendMessage" OPTIONS :RETURN-TYPE '*MESSAGE)))
(DEFUN FORWARD-MESSAGE
(BOT CHAT--ID FROM--CHAT--ID MESSAGE--ID &KEY DISABLE--NOTIFICATION)
"https://core.telegram.org/bots/api#forwardmessage
Use this method to forward messages of any kind. On success, the sent Message is returned."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE FROM--CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE MESSAGE--ID INTEGER)
(LET ((OPTIONS
(LIST (CONS :CHAT_ID CHAT--ID) (CONS :FROM_CHAT_ID FROM--CHAT--ID)
(CONS :MESSAGE_ID MESSAGE--ID))))
(WHEN DISABLE--NOTIFICATION
(NCONC OPTIONS
(LIST (CONS :DISABLE_NOTIFICATION DISABLE--NOTIFICATION))))
(MAKE-REQUEST BOT "forwardMessage" OPTIONS :RETURN-TYPE '*MESSAGE)))
(DEFUN SEND-PHOTO
(BOT CHAT--ID PHOTO
&KEY CAPTION PARSE--MODE DISABLE--NOTIFICATION REPLY--TO--MESSAGE--ID
REPLY--MARKUP)
"https://core.telegram.org/bots/api#sendphoto
Use this method to send photos. On success, the sent Message is returned."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE PHOTO (OR *INPUT-FILE STRING))
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID) (CONS :PHOTO PHOTO))))
(WHEN CAPTION (NCONC OPTIONS (LIST (CONS :CAPTION CAPTION))))
(WHEN PARSE--MODE (NCONC OPTIONS (LIST (CONS :PARSE_MODE PARSE--MODE))))
(WHEN DISABLE--NOTIFICATION
(NCONC OPTIONS
(LIST (CONS :DISABLE_NOTIFICATION DISABLE--NOTIFICATION))))
(WHEN REPLY--TO--MESSAGE--ID
(NCONC OPTIONS
(LIST (CONS :REPLY_TO_MESSAGE_ID REPLY--TO--MESSAGE--ID))))
(WHEN REPLY--MARKUP
(NCONC OPTIONS (LIST (CONS :REPLY_MARKUP REPLY--MARKUP))))
(MAKE-REQUEST BOT "sendPhoto" OPTIONS :RETURN-TYPE '*MESSAGE)))
(DEFUN SEND-AUDIO
(BOT CHAT--ID AUDIO
&KEY CAPTION PARSE--MODE DURATION PERFORMER TITLE THUMB
DISABLE--NOTIFICATION REPLY--TO--MESSAGE--ID REPLY--MARKUP)
"https://core.telegram.org/bots/api#sendaudio
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 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."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE AUDIO (OR *INPUT-FILE STRING))
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID) (CONS :AUDIO AUDIO))))
(WHEN CAPTION (NCONC OPTIONS (LIST (CONS :CAPTION CAPTION))))
(WHEN PARSE--MODE (NCONC OPTIONS (LIST (CONS :PARSE_MODE PARSE--MODE))))
(WHEN DURATION (NCONC OPTIONS (LIST (CONS :DURATION DURATION))))
(WHEN PERFORMER (NCONC OPTIONS (LIST (CONS :PERFORMER PERFORMER))))
(WHEN TITLE (NCONC OPTIONS (LIST (CONS :TITLE TITLE))))
(WHEN THUMB (NCONC OPTIONS (LIST (CONS :THUMB THUMB))))
(WHEN DISABLE--NOTIFICATION
(NCONC OPTIONS
(LIST (CONS :DISABLE_NOTIFICATION DISABLE--NOTIFICATION))))
(WHEN REPLY--TO--MESSAGE--ID
(NCONC OPTIONS
(LIST (CONS :REPLY_TO_MESSAGE_ID REPLY--TO--MESSAGE--ID))))
(WHEN REPLY--MARKUP
(NCONC OPTIONS (LIST (CONS :REPLY_MARKUP REPLY--MARKUP))))
(MAKE-REQUEST BOT "sendAudio" OPTIONS :RETURN-TYPE '*MESSAGE)))
(DEFUN SEND-DOCUMENT
(BOT CHAT--ID DOCUMENT
&KEY THUMB CAPTION PARSE--MODE DISABLE--NOTIFICATION
REPLY--TO--MESSAGE--ID REPLY--MARKUP)
"https://core.telegram.org/bots/api#senddocument
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."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE DOCUMENT (OR *INPUT-FILE STRING))
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID) (CONS :DOCUMENT DOCUMENT))))
(WHEN THUMB (NCONC OPTIONS (LIST (CONS :THUMB THUMB))))
(WHEN CAPTION (NCONC OPTIONS (LIST (CONS :CAPTION CAPTION))))
(WHEN PARSE--MODE (NCONC OPTIONS (LIST (CONS :PARSE_MODE PARSE--MODE))))
(WHEN DISABLE--NOTIFICATION
(NCONC OPTIONS
(LIST (CONS :DISABLE_NOTIFICATION DISABLE--NOTIFICATION))))
(WHEN REPLY--TO--MESSAGE--ID
(NCONC OPTIONS
(LIST (CONS :REPLY_TO_MESSAGE_ID REPLY--TO--MESSAGE--ID))))
(WHEN REPLY--MARKUP
(NCONC OPTIONS (LIST (CONS :REPLY_MARKUP REPLY--MARKUP))))
(MAKE-REQUEST BOT "sendDocument" OPTIONS :RETURN-TYPE '*MESSAGE)))
(DEFUN SEND-VIDEO
(BOT CHAT--ID VIDEO
&KEY DURATION WIDTH HEIGHT THUMB CAPTION PARSE--MODE
SUPPORTS--STREAMING DISABLE--NOTIFICATION REPLY--TO--MESSAGE--ID
REPLY--MARKUP)
"https://core.telegram.org/bots/api#sendvideo
Use this method to send video files, Telegram clients support mp4 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."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE VIDEO (OR *INPUT-FILE STRING))
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID) (CONS :VIDEO VIDEO))))
(WHEN DURATION (NCONC OPTIONS (LIST (CONS :DURATION DURATION))))
(WHEN WIDTH (NCONC OPTIONS (LIST (CONS :WIDTH WIDTH))))
(WHEN HEIGHT (NCONC OPTIONS (LIST (CONS :HEIGHT HEIGHT))))
(WHEN THUMB (NCONC OPTIONS (LIST (CONS :THUMB THUMB))))
(WHEN CAPTION (NCONC OPTIONS (LIST (CONS :CAPTION CAPTION))))
(WHEN PARSE--MODE (NCONC OPTIONS (LIST (CONS :PARSE_MODE PARSE--MODE))))
(WHEN SUPPORTS--STREAMING
(NCONC OPTIONS (LIST (CONS :SUPPORTS_STREAMING SUPPORTS--STREAMING))))
(WHEN DISABLE--NOTIFICATION
(NCONC OPTIONS
(LIST (CONS :DISABLE_NOTIFICATION DISABLE--NOTIFICATION))))
(WHEN REPLY--TO--MESSAGE--ID
(NCONC OPTIONS
(LIST (CONS :REPLY_TO_MESSAGE_ID REPLY--TO--MESSAGE--ID))))
(WHEN REPLY--MARKUP
(NCONC OPTIONS (LIST (CONS :REPLY_MARKUP REPLY--MARKUP))))
(MAKE-REQUEST BOT "sendVideo" OPTIONS :RETURN-TYPE '*MESSAGE)))
(DEFUN SEND-ANIMATION
(BOT CHAT--ID ANIMATION
&KEY DURATION WIDTH HEIGHT THUMB CAPTION PARSE--MODE
DISABLE--NOTIFICATION REPLY--TO--MESSAGE--ID REPLY--MARKUP)
"https://core.telegram.org/bots/api#sendanimation
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."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE ANIMATION (OR *INPUT-FILE STRING))
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID) (CONS :ANIMATION ANIMATION))))
(WHEN DURATION (NCONC OPTIONS (LIST (CONS :DURATION DURATION))))
(WHEN WIDTH (NCONC OPTIONS (LIST (CONS :WIDTH WIDTH))))
(WHEN HEIGHT (NCONC OPTIONS (LIST (CONS :HEIGHT HEIGHT))))
(WHEN THUMB (NCONC OPTIONS (LIST (CONS :THUMB THUMB))))
(WHEN CAPTION (NCONC OPTIONS (LIST (CONS :CAPTION CAPTION))))
(WHEN PARSE--MODE (NCONC OPTIONS (LIST (CONS :PARSE_MODE PARSE--MODE))))
(WHEN DISABLE--NOTIFICATION
(NCONC OPTIONS
(LIST (CONS :DISABLE_NOTIFICATION DISABLE--NOTIFICATION))))
(WHEN REPLY--TO--MESSAGE--ID
(NCONC OPTIONS
(LIST (CONS :REPLY_TO_MESSAGE_ID REPLY--TO--MESSAGE--ID))))
(WHEN REPLY--MARKUP
(NCONC OPTIONS (LIST (CONS :REPLY_MARKUP REPLY--MARKUP))))
(MAKE-REQUEST BOT "sendAnimation" OPTIONS :RETURN-TYPE '*MESSAGE)))
(DEFUN SEND-VOICE
(BOT CHAT--ID VOICE
&KEY CAPTION PARSE--MODE DURATION DISABLE--NOTIFICATION
REPLY--TO--MESSAGE--ID REPLY--MARKUP)
"https://core.telegram.org/bots/api#sendvoice
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."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE VOICE (OR *INPUT-FILE STRING))
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID) (CONS :VOICE VOICE))))
(WHEN CAPTION (NCONC OPTIONS (LIST (CONS :CAPTION CAPTION))))
(WHEN PARSE--MODE (NCONC OPTIONS (LIST (CONS :PARSE_MODE PARSE--MODE))))
(WHEN DURATION (NCONC OPTIONS (LIST (CONS :DURATION DURATION))))
(WHEN DISABLE--NOTIFICATION
(NCONC OPTIONS
(LIST (CONS :DISABLE_NOTIFICATION DISABLE--NOTIFICATION))))
(WHEN REPLY--TO--MESSAGE--ID
(NCONC OPTIONS
(LIST (CONS :REPLY_TO_MESSAGE_ID REPLY--TO--MESSAGE--ID))))
(WHEN REPLY--MARKUP
(NCONC OPTIONS (LIST (CONS :REPLY_MARKUP REPLY--MARKUP))))
(MAKE-REQUEST BOT "sendVoice" OPTIONS :RETURN-TYPE '*MESSAGE)))
(DEFUN SEND-VIDEO-NOTE
(BOT CHAT--ID VIDEO--NOTE
&KEY DURATION LENGTH THUMB DISABLE--NOTIFICATION REPLY--TO--MESSAGE--ID
REPLY--MARKUP)
"https://core.telegram.org/bots/api#sendvideonote
As of v.4.0, Telegram clients support rounded square mp4 videos of up to 1 minute long. Use this method to send video messages. On success, the sent Message is returned."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE VIDEO--NOTE (OR *INPUT-FILE STRING))
(LET ((OPTIONS
(LIST (CONS :CHAT_ID CHAT--ID) (CONS :VIDEO_NOTE VIDEO--NOTE))))
(WHEN DURATION (NCONC OPTIONS (LIST (CONS :DURATION DURATION))))
(WHEN LENGTH (NCONC OPTIONS (LIST (CONS :LENGTH LENGTH))))
(WHEN THUMB (NCONC OPTIONS (LIST (CONS :THUMB THUMB))))
(WHEN DISABLE--NOTIFICATION
(NCONC OPTIONS
(LIST (CONS :DISABLE_NOTIFICATION DISABLE--NOTIFICATION))))
(WHEN REPLY--TO--MESSAGE--ID
(NCONC OPTIONS
(LIST (CONS :REPLY_TO_MESSAGE_ID REPLY--TO--MESSAGE--ID))))
(WHEN REPLY--MARKUP
(NCONC OPTIONS (LIST (CONS :REPLY_MARKUP REPLY--MARKUP))))
(MAKE-REQUEST BOT "sendVideoNote" OPTIONS :RETURN-TYPE '*MESSAGE)))
(DEFUN SEND-MEDIA-GROUP
(BOT CHAT--ID MEDIA &KEY DISABLE--NOTIFICATION REPLY--TO--MESSAGE--ID)
"https://core.telegram.org/bots/api#sendmediagroup
Use this method to send a group of photos or videos as an album. On success, an array of the sent Messages is returned."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE MEDIA (ARRAY *INPUT-MEDIA-PHOTO))
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID) (CONS :MEDIA MEDIA))))
(WHEN DISABLE--NOTIFICATION
(NCONC OPTIONS
(LIST (CONS :DISABLE_NOTIFICATION DISABLE--NOTIFICATION))))
(WHEN REPLY--TO--MESSAGE--ID
(NCONC OPTIONS
(LIST (CONS :REPLY_TO_MESSAGE_ID REPLY--TO--MESSAGE--ID))))
(MAKE-REQUEST BOT "sendMediaGroup" OPTIONS :RETURN-TYPE '*MESSAGE)))
(DEFUN SEND-LOCATION
(BOT CHAT--ID LATITUDE LONGITUDE
&KEY LIVE--PERIOD DISABLE--NOTIFICATION REPLY--TO--MESSAGE--ID
REPLY--MARKUP)
"https://core.telegram.org/bots/api#sendlocation
Use this method to send point on the map. On success, the sent Message is returned."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE LATITUDE FLOAT)
(CHECK-TYPE LONGITUDE FLOAT)
(LET ((OPTIONS
(LIST (CONS :CHAT_ID CHAT--ID) (CONS :LATITUDE LATITUDE)
(CONS :LONGITUDE LONGITUDE))))
(WHEN LIVE--PERIOD (NCONC OPTIONS (LIST (CONS :LIVE_PERIOD LIVE--PERIOD))))
(WHEN DISABLE--NOTIFICATION
(NCONC OPTIONS
(LIST (CONS :DISABLE_NOTIFICATION DISABLE--NOTIFICATION))))
(WHEN REPLY--TO--MESSAGE--ID
(NCONC OPTIONS
(LIST (CONS :REPLY_TO_MESSAGE_ID REPLY--TO--MESSAGE--ID))))
(WHEN REPLY--MARKUP
(NCONC OPTIONS (LIST (CONS :REPLY_MARKUP REPLY--MARKUP))))
(MAKE-REQUEST BOT "sendLocation" OPTIONS :RETURN-TYPE '*MESSAGE)))
(DEFUN EDIT-MESSAGE-LIVE-LOCATION
(BOT LATITUDE LONGITUDE
&KEY CHAT--ID MESSAGE--ID INLINE--MESSAGE--ID REPLY--MARKUP)
"https://core.telegram.org/bots/api#editmessagelivelocation
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 was sent by the bot, the edited Message is returned, otherwise True is returned."
(CHECK-TYPE LATITUDE FLOAT)
(CHECK-TYPE LONGITUDE FLOAT)
(LET ((OPTIONS (LIST (CONS :LATITUDE LATITUDE) (CONS :LONGITUDE LONGITUDE))))
(WHEN CHAT--ID (NCONC OPTIONS (LIST (CONS :CHAT_ID CHAT--ID))))
(WHEN MESSAGE--ID (NCONC OPTIONS (LIST (CONS :MESSAGE_ID MESSAGE--ID))))
(WHEN INLINE--MESSAGE--ID
(NCONC OPTIONS (LIST (CONS :INLINE_MESSAGE_ID INLINE--MESSAGE--ID))))
(WHEN REPLY--MARKUP
(NCONC OPTIONS (LIST (CONS :REPLY_MARKUP REPLY--MARKUP))))
(MAKE-REQUEST BOT "editMessageLiveLocation" OPTIONS :RETURN-TYPE
'*MESSAGE)))
(DEFUN STOP-MESSAGE-LIVE-LOCATION
(BOT &KEY CHAT--ID MESSAGE--ID INLINE--MESSAGE--ID REPLY--MARKUP)
"https://core.telegram.org/bots/api#stopmessagelivelocation
Use this method to stop updating a live location message before live_period expires. On success, if the message was sent by the bot, the sent Message is returned, otherwise True is returned."
(LET ((OPTIONS (LIST)))
(WHEN CHAT--ID (NCONC OPTIONS (LIST (CONS :CHAT_ID CHAT--ID))))
(WHEN MESSAGE--ID (NCONC OPTIONS (LIST (CONS :MESSAGE_ID MESSAGE--ID))))
(WHEN INLINE--MESSAGE--ID
(NCONC OPTIONS (LIST (CONS :INLINE_MESSAGE_ID INLINE--MESSAGE--ID))))
(WHEN REPLY--MARKUP
(NCONC OPTIONS (LIST (CONS :REPLY_MARKUP REPLY--MARKUP))))
(MAKE-REQUEST BOT "stopMessageLiveLocation" OPTIONS :RETURN-TYPE
'*MESSAGE)))
(DEFUN SEND-VENUE
(BOT CHAT--ID LATITUDE LONGITUDE TITLE ADDRESS
&KEY FOURSQUARE--ID FOURSQUARE--TYPE DISABLE--NOTIFICATION
REPLY--TO--MESSAGE--ID REPLY--MARKUP)
"https://core.telegram.org/bots/api#sendvenue
Use this method to send information about a venue. On success, the sent Message is returned."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE LATITUDE FLOAT)
(CHECK-TYPE LONGITUDE FLOAT)
(CHECK-TYPE TITLE STRING)
(CHECK-TYPE ADDRESS STRING)
(LET ((OPTIONS
(LIST (CONS :CHAT_ID CHAT--ID) (CONS :LATITUDE LATITUDE)
(CONS :LONGITUDE LONGITUDE) (CONS :TITLE TITLE)
(CONS :ADDRESS ADDRESS))))
(WHEN FOURSQUARE--ID
(NCONC OPTIONS (LIST (CONS :FOURSQUARE_ID FOURSQUARE--ID))))
(WHEN FOURSQUARE--TYPE
(NCONC OPTIONS (LIST (CONS :FOURSQUARE_TYPE FOURSQUARE--TYPE))))
(WHEN DISABLE--NOTIFICATION
(NCONC OPTIONS
(LIST (CONS :DISABLE_NOTIFICATION DISABLE--NOTIFICATION))))
(WHEN REPLY--TO--MESSAGE--ID
(NCONC OPTIONS
(LIST (CONS :REPLY_TO_MESSAGE_ID REPLY--TO--MESSAGE--ID))))
(WHEN REPLY--MARKUP
(NCONC OPTIONS (LIST (CONS :REPLY_MARKUP REPLY--MARKUP))))
(MAKE-REQUEST BOT "sendVenue" OPTIONS :RETURN-TYPE '*MESSAGE)))
(DEFUN SEND-CONTACT
(BOT CHAT--ID PHONE--NUMBER FIRST--NAME
&KEY LAST--NAME VCARD DISABLE--NOTIFICATION REPLY--TO--MESSAGE--ID
REPLY--MARKUP)
"https://core.telegram.org/bots/api#sendcontact
Use this method to send phone contacts. On success, the sent Message is returned."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE PHONE--NUMBER STRING)
(CHECK-TYPE FIRST--NAME STRING)
(LET ((OPTIONS
(LIST (CONS :CHAT_ID CHAT--ID) (CONS :PHONE_NUMBER PHONE--NUMBER)
(CONS :FIRST_NAME FIRST--NAME))))
(WHEN LAST--NAME (NCONC OPTIONS (LIST (CONS :LAST_NAME LAST--NAME))))
(WHEN VCARD (NCONC OPTIONS (LIST (CONS :VCARD VCARD))))
(WHEN DISABLE--NOTIFICATION
(NCONC OPTIONS
(LIST (CONS :DISABLE_NOTIFICATION DISABLE--NOTIFICATION))))
(WHEN REPLY--TO--MESSAGE--ID
(NCONC OPTIONS
(LIST (CONS :REPLY_TO_MESSAGE_ID REPLY--TO--MESSAGE--ID))))
(WHEN REPLY--MARKUP
(NCONC OPTIONS (LIST (CONS :REPLY_MARKUP REPLY--MARKUP))))
(MAKE-REQUEST BOT "sendContact" OPTIONS :RETURN-TYPE '*MESSAGE)))
(DEFUN SEND-POLL
(BOT CHAT--ID QUESTION OPTIONS
&KEY DISABLE--NOTIFICATION REPLY--TO--MESSAGE--ID REPLY--MARKUP)
"https://core.telegram.org/bots/api#sendpoll
Use this method to send a native poll. A native poll can't be sent to a private chat. On success, the sent Message is returned."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE QUESTION STRING)
(CHECK-TYPE OPTIONS (ARRAY STRING))
(LET ((OPTIONS
(LIST (CONS :CHAT_ID CHAT--ID) (CONS :QUESTION QUESTION)
(CONS :OPTIONS OPTIONS))))
(WHEN DISABLE--NOTIFICATION
(NCONC OPTIONS
(LIST (CONS :DISABLE_NOTIFICATION DISABLE--NOTIFICATION))))
(WHEN REPLY--TO--MESSAGE--ID
(NCONC OPTIONS
(LIST (CONS :REPLY_TO_MESSAGE_ID REPLY--TO--MESSAGE--ID))))
(WHEN REPLY--MARKUP
(NCONC OPTIONS (LIST (CONS :REPLY_MARKUP REPLY--MARKUP))))
(MAKE-REQUEST BOT "sendPoll" OPTIONS :RETURN-TYPE '*MESSAGE)))
(DEFUN SEND-CHAT-ACTION (BOT CHAT--ID ACTION)
"https://core.telegram.org/bots/api#sendchataction
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."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE ACTION STRING)
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID) (CONS :ACTION ACTION))))
(MAKE-REQUEST BOT "sendChatAction" OPTIONS)))
(DEFUN GET-USER-PROFILE-PHOTOS (BOT USER--ID &KEY OFFSET LIMIT)
"https://core.telegram.org/bots/api#getuserprofilephotos
Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object."
(CHECK-TYPE USER--ID INTEGER)
(LET ((OPTIONS (LIST (CONS :USER_ID USER--ID))))
(WHEN OFFSET (NCONC OPTIONS (LIST (CONS :OFFSET OFFSET))))
(WHEN LIMIT (NCONC OPTIONS (LIST (CONS :LIMIT LIMIT))))
(MAKE-REQUEST BOT "getUserProfilePhotos" OPTIONS :RETURN-TYPE
'*USER-PROFILE-PHOTOS)))
(DEFUN GET-FILE (BOT FILE--ID)
"https://core.telegram.org/bots/api#getfile
Use this method to get basic info 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<token>/<file_path>, where <file_path> 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."
(CHECK-TYPE FILE--ID STRING)
(LET ((OPTIONS (LIST (CONS :FILE_ID FILE--ID))))
(MAKE-REQUEST BOT "getFile" OPTIONS :RETURN-TYPE '*FILE)))
(DEFUN KICK-CHAT-MEMBER (BOT CHAT--ID USER--ID &KEY UNTIL--DATE)
"https://core.telegram.org/bots/api#kickchatmember
Use this method to kick a user from a group, a supergroup or a channel. In the case of supergroups and channels, the user will not be able to return to the group 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 admin rights. Returns True on success."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE USER--ID INTEGER)
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID) (CONS :USER_ID USER--ID))))
(WHEN UNTIL--DATE (NCONC OPTIONS (LIST (CONS :UNTIL_DATE UNTIL--DATE))))
(MAKE-REQUEST BOT "kickChatMember" OPTIONS)))
(DEFUN UNBAN-CHAT-MEMBER (BOT CHAT--ID USER--ID)
"https://core.telegram.org/bots/api#unbanchatmember
Use this method to unban a previously kicked 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. Returns True on success."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE USER--ID INTEGER)
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID) (CONS :USER_ID USER--ID))))
(MAKE-REQUEST BOT "unbanChatMember" OPTIONS)))
(DEFUN RESTRICT-CHAT-MEMBER
(BOT CHAT--ID USER--ID PERMISSIONS &KEY UNTIL--DATE)
"https://core.telegram.org/bots/api#restrictchatmember
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 admin rights. Pass True for all permissions to lift restrictions from a user. Returns True on success."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE USER--ID INTEGER)
(CHECK-TYPE PERMISSIONS *CHAT-PERMISSIONS)
(LET ((OPTIONS
(LIST (CONS :CHAT_ID CHAT--ID) (CONS :USER_ID USER--ID)
(CONS :PERMISSIONS PERMISSIONS))))
(WHEN UNTIL--DATE (NCONC OPTIONS (LIST (CONS :UNTIL_DATE UNTIL--DATE))))
(MAKE-REQUEST BOT "restrictChatMember" OPTIONS)))
(DEFUN PROMOTE-CHAT-MEMBER
(BOT CHAT--ID USER--ID
&KEY CAN--CHANGE--INFO CAN--POST--MESSAGES CAN--EDIT--MESSAGES
CAN--DELETE--MESSAGES CAN--INVITE--USERS CAN--RESTRICT--MEMBERS
CAN--PIN--MESSAGES CAN--PROMOTE--MEMBERS)
"https://core.telegram.org/bots/api#promotechatmember
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 admin rights. Pass False for all boolean parameters to demote a user. Returns True on success."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE USER--ID INTEGER)
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID) (CONS :USER_ID USER--ID))))
(WHEN CAN--CHANGE--INFO
(NCONC OPTIONS (LIST (CONS :CAN_CHANGE_INFO CAN--CHANGE--INFO))))
(WHEN CAN--POST--MESSAGES
(NCONC OPTIONS (LIST (CONS :CAN_POST_MESSAGES CAN--POST--MESSAGES))))
(WHEN CAN--EDIT--MESSAGES
(NCONC OPTIONS (LIST (CONS :CAN_EDIT_MESSAGES CAN--EDIT--MESSAGES))))
(WHEN CAN--DELETE--MESSAGES
(NCONC OPTIONS (LIST (CONS :CAN_DELETE_MESSAGES CAN--DELETE--MESSAGES))))
(WHEN CAN--INVITE--USERS
(NCONC OPTIONS (LIST (CONS :CAN_INVITE_USERS CAN--INVITE--USERS))))
(WHEN CAN--RESTRICT--MEMBERS
(NCONC OPTIONS
(LIST (CONS :CAN_RESTRICT_MEMBERS CAN--RESTRICT--MEMBERS))))
(WHEN CAN--PIN--MESSAGES
(NCONC OPTIONS (LIST (CONS :CAN_PIN_MESSAGES CAN--PIN--MESSAGES))))
(WHEN CAN--PROMOTE--MEMBERS
(NCONC OPTIONS (LIST (CONS :CAN_PROMOTE_MEMBERS CAN--PROMOTE--MEMBERS))))
(MAKE-REQUEST BOT "promoteChatMember" OPTIONS)))
(DEFUN SET-CHAT-PERMISSIONS (BOT CHAT--ID PERMISSIONS)
"https://core.telegram.org/bots/api#setchatpermissions
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 admin rights. Returns True on success."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE PERMISSIONS *CHAT-PERMISSIONS)
(LET ((OPTIONS
(LIST (CONS :CHAT_ID CHAT--ID) (CONS :PERMISSIONS PERMISSIONS))))
(MAKE-REQUEST BOT "setChatPermissions" OPTIONS)))
(DEFUN EXPORT-CHAT-INVITE-LINK (BOT CHAT--ID)
"https://core.telegram.org/bots/api#exportchatinvitelink
Use this method to generate a new invite link for a chat; any previously generated link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns the new invite link as String on success."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID))))
(MAKE-REQUEST BOT "exportChatInviteLink" OPTIONS)))
(DEFUN SET-CHAT-PHOTO (BOT CHAT--ID PHOTO)
"https://core.telegram.org/bots/api#setchatphoto
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 admin rights. Returns True on success."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE PHOTO *INPUT-FILE)
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID) (CONS :PHOTO PHOTO))))
(MAKE-REQUEST BOT "setChatPhoto" OPTIONS)))
(DEFUN DELETE-CHAT-PHOTO (BOT CHAT--ID)
"https://core.telegram.org/bots/api#deletechatphoto
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 admin rights. Returns True on success."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID))))
(MAKE-REQUEST BOT "deleteChatPhoto" OPTIONS)))
(DEFUN SET-CHAT-TITLE (BOT CHAT--ID TITLE)
"https://core.telegram.org/bots/api#setchattitle
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 admin rights. Returns True on success."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE TITLE STRING)
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID) (CONS :TITLE TITLE))))
(MAKE-REQUEST BOT "setChatTitle" OPTIONS)))
(DEFUN SET-CHAT-DESCRIPTION (BOT CHAT--ID &KEY DESCRIPTION)
"https://core.telegram.org/bots/api#setchatdescription
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 admin rights. Returns True on success."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID))))
(WHEN DESCRIPTION (NCONC OPTIONS (LIST (CONS :DESCRIPTION DESCRIPTION))))
(MAKE-REQUEST BOT "setChatDescription" OPTIONS)))
(DEFUN PIN-CHAT-MESSAGE (BOT CHAT--ID MESSAGE--ID &KEY DISABLE--NOTIFICATION)
"https://core.telegram.org/bots/api#pinchatmessage
Use this method to pin a message in a group, a supergroup, or a channel. The bot must be an administrator in the chat for this to work and must have the can_pin_messages admin right in the supergroup or can_edit_messages admin right in the channel. Returns True on success."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE MESSAGE--ID INTEGER)
(LET ((OPTIONS
(LIST (CONS :CHAT_ID CHAT--ID) (CONS :MESSAGE_ID MESSAGE--ID))))
(WHEN DISABLE--NOTIFICATION
(NCONC OPTIONS
(LIST (CONS :DISABLE_NOTIFICATION DISABLE--NOTIFICATION))))
(MAKE-REQUEST BOT "pinChatMessage" OPTIONS)))
(DEFUN UNPIN-CHAT-MESSAGE (BOT CHAT--ID)
"https://core.telegram.org/bots/api#unpinchatmessage
Use this method to unpin a message in a group, a supergroup, or a channel. The bot must be an administrator in the chat for this to work and must have the can_pin_messages admin right in the supergroup or can_edit_messages admin right in the channel. Returns True on success."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID))))
(MAKE-REQUEST BOT "unpinChatMessage" OPTIONS)))
(DEFUN LEAVE-CHAT (BOT CHAT--ID)
"https://core.telegram.org/bots/api#leavechat
Use this method for your bot to leave a group, supergroup or channel. Returns True on success."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID))))
(MAKE-REQUEST BOT "leaveChat" OPTIONS)))
(DEFUN GET-CHAT (BOT CHAT--ID)
"https://core.telegram.org/bots/api#getchat
Use this method to get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.). Returns a Chat object on success."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID))))
(MAKE-REQUEST BOT "getChat" OPTIONS :RETURN-TYPE '*CHAT)))
(DEFUN GET-CHAT-ADMINISTRATORS (BOT CHAT--ID)
"https://core.telegram.org/bots/api#getchatadministrators
Use this method to get a list of administrators in a chat. On success, returns an Array of ChatMember objects that contains information about all chat administrators except other bots. If the chat is a group or a supergroup and no administrators were appointed, only the creator will be returned."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID))))
(MAKE-REQUEST BOT "getChatAdministrators" OPTIONS :RETURN-TYPE
'*CHAT-MEMBER)))
(DEFUN GET-CHAT-MEMBERS-COUNT (BOT CHAT--ID)
"https://core.telegram.org/bots/api#getchatmemberscount
Use this method to get the number of members in a chat. Returns Int on success."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID))))
(MAKE-REQUEST BOT "getChatMembersCount" OPTIONS)))
(DEFUN GET-CHAT-MEMBER (BOT CHAT--ID USER--ID)
"https://core.telegram.org/bots/api#getchatmember
Use this method to get information about a member of a chat. Returns a ChatMember object on success."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE USER--ID INTEGER)
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID) (CONS :USER_ID USER--ID))))
(MAKE-REQUEST BOT "getChatMember" OPTIONS :RETURN-TYPE '*CHAT-MEMBER)))
(DEFUN SET-CHAT-STICKER-SET (BOT CHAT--ID STICKER--SET--NAME)
"https://core.telegram.org/bots/api#setchatstickerset
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 admin 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."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE STICKER--SET--NAME STRING)
(LET ((OPTIONS
(LIST (CONS :CHAT_ID CHAT--ID)
(CONS :STICKER_SET_NAME STICKER--SET--NAME))))
(MAKE-REQUEST BOT "setChatStickerSet" OPTIONS :RETURN-TYPE 'GET-CHAT)))
(DEFUN DELETE-CHAT-STICKER-SET (BOT CHAT--ID)
"https://core.telegram.org/bots/api#deletechatstickerset
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 admin 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."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID))))
(MAKE-REQUEST BOT "deleteChatStickerSet" OPTIONS :RETURN-TYPE 'GET-CHAT)))
(DEFUN ANSWER-CALLBACK-QUERY
(BOT CALLBACK--QUERY--ID &KEY TEXT SHOW--ALERT URL CACHE--TIME)
"https://core.telegram.org/bots/api#answercallbackquery
Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, True is returned."
(CHECK-TYPE CALLBACK--QUERY--ID STRING)
(LET ((OPTIONS (LIST (CONS :CALLBACK_QUERY_ID CALLBACK--QUERY--ID))))
(WHEN TEXT (NCONC OPTIONS (LIST (CONS :TEXT TEXT))))
(WHEN SHOW--ALERT (NCONC OPTIONS (LIST (CONS :SHOW_ALERT SHOW--ALERT))))
(WHEN URL (NCONC OPTIONS (LIST (CONS :URL URL))))
(WHEN CACHE--TIME (NCONC OPTIONS (LIST (CONS :CACHE_TIME CACHE--TIME))))
(MAKE-REQUEST BOT "answerCallbackQuery" OPTIONS)))
;----Updating messages----
(DEFUN EDIT-MESSAGE-TEXT
(BOT TEXT
&KEY CHAT--ID MESSAGE--ID INLINE--MESSAGE--ID PARSE--MODE
DISABLE--WEB--PAGE--PREVIEW REPLY--MARKUP)
"https://core.telegram.org/bots/api#editmessagetext
Use this method to edit text and game messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned."
(CHECK-TYPE TEXT STRING)
(LET ((OPTIONS (LIST (CONS :TEXT TEXT))))
(WHEN CHAT--ID (NCONC OPTIONS (LIST (CONS :CHAT_ID CHAT--ID))))
(WHEN MESSAGE--ID (NCONC OPTIONS (LIST (CONS :MESSAGE_ID MESSAGE--ID))))
(WHEN INLINE--MESSAGE--ID
(NCONC OPTIONS (LIST (CONS :INLINE_MESSAGE_ID INLINE--MESSAGE--ID))))
(WHEN PARSE--MODE (NCONC OPTIONS (LIST (CONS :PARSE_MODE PARSE--MODE))))
(WHEN DISABLE--WEB--PAGE--PREVIEW
(NCONC OPTIONS
(LIST
(CONS :DISABLE_WEB_PAGE_PREVIEW DISABLE--WEB--PAGE--PREVIEW))))
(WHEN REPLY--MARKUP
(NCONC OPTIONS (LIST (CONS :REPLY_MARKUP REPLY--MARKUP))))
(MAKE-REQUEST BOT "editMessageText" OPTIONS :RETURN-TYPE '*MESSAGE)))
(DEFUN EDIT-MESSAGE-CAPTION
(BOT
&KEY CHAT--ID MESSAGE--ID INLINE--MESSAGE--ID CAPTION PARSE--MODE
REPLY--MARKUP)
"https://core.telegram.org/bots/api#editmessagecaption
Use this method to edit captions of messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned."
(LET ((OPTIONS (LIST)))
(WHEN CHAT--ID (NCONC OPTIONS (LIST (CONS :CHAT_ID CHAT--ID))))
(WHEN MESSAGE--ID (NCONC OPTIONS (LIST (CONS :MESSAGE_ID MESSAGE--ID))))
(WHEN INLINE--MESSAGE--ID
(NCONC OPTIONS (LIST (CONS :INLINE_MESSAGE_ID INLINE--MESSAGE--ID))))
(WHEN CAPTION (NCONC OPTIONS (LIST (CONS :CAPTION CAPTION))))
(WHEN PARSE--MODE (NCONC OPTIONS (LIST (CONS :PARSE_MODE PARSE--MODE))))
(WHEN REPLY--MARKUP
(NCONC OPTIONS (LIST (CONS :REPLY_MARKUP REPLY--MARKUP))))
(MAKE-REQUEST BOT "editMessageCaption" OPTIONS :RETURN-TYPE '*MESSAGE)))
(DEFUN EDIT-MESSAGE-MEDIA
(BOT MEDIA &KEY CHAT--ID MESSAGE--ID INLINE--MESSAGE--ID REPLY--MARKUP)
"https://core.telegram.org/bots/api#editmessagemedia
Use this method to edit animation, audio, document, photo, or video messages. If a message is a part of a message album, then it can be edited only to a photo or a video. Otherwise, message type can be changed arbitrarily. When inline message is edited, new file can't be uploaded. Use previously uploaded file via its file_id or specify a URL. On success, if the edited message was sent by the bot, the edited Message is returned, otherwise True is returned."
(CHECK-TYPE MEDIA *INPUT-MEDIA)
(LET ((OPTIONS (LIST (CONS :MEDIA MEDIA))))
(WHEN CHAT--ID (NCONC OPTIONS (LIST (CONS :CHAT_ID CHAT--ID))))
(WHEN MESSAGE--ID (NCONC OPTIONS (LIST (CONS :MESSAGE_ID MESSAGE--ID))))
(WHEN INLINE--MESSAGE--ID
(NCONC OPTIONS (LIST (CONS :INLINE_MESSAGE_ID INLINE--MESSAGE--ID))))
(WHEN REPLY--MARKUP
(NCONC OPTIONS (LIST (CONS :REPLY_MARKUP REPLY--MARKUP))))
(MAKE-REQUEST BOT "editMessageMedia" OPTIONS :RETURN-TYPE '*MESSAGE)))
(DEFUN EDIT-MESSAGE-REPLY-MARKUP
(BOT &KEY CHAT--ID MESSAGE--ID INLINE--MESSAGE--ID REPLY--MARKUP)
"https://core.telegram.org/bots/api#editmessagereplymarkup
Use this method to edit only the reply markup of messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned."
(LET ((OPTIONS (LIST)))
(WHEN CHAT--ID (NCONC OPTIONS (LIST (CONS :CHAT_ID CHAT--ID))))
(WHEN MESSAGE--ID (NCONC OPTIONS (LIST (CONS :MESSAGE_ID MESSAGE--ID))))
(WHEN INLINE--MESSAGE--ID
(NCONC OPTIONS (LIST (CONS :INLINE_MESSAGE_ID INLINE--MESSAGE--ID))))
(WHEN REPLY--MARKUP
(NCONC OPTIONS (LIST (CONS :REPLY_MARKUP REPLY--MARKUP))))
(MAKE-REQUEST BOT "editMessageReplyMarkup" OPTIONS :RETURN-TYPE '*MESSAGE)))
(DEFUN STOP-POLL (BOT CHAT--ID MESSAGE--ID &KEY REPLY--MARKUP)
"https://core.telegram.org/bots/api#stoppoll
Use this method to stop a poll which was sent by the bot. On success, the stopped Poll with the final results is returned."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE MESSAGE--ID INTEGER)
(LET ((OPTIONS
(LIST (CONS :CHAT_ID CHAT--ID) (CONS :MESSAGE_ID MESSAGE--ID))))
(WHEN REPLY--MARKUP
(NCONC OPTIONS (LIST (CONS :REPLY_MARKUP REPLY--MARKUP))))
(MAKE-REQUEST BOT "stopPoll" OPTIONS :RETURN-TYPE '*POLL)))
(DEFUN DELETE-MESSAGE (BOT CHAT--ID MESSAGE--ID)
"https://core.telegram.org/bots/api#deletemessage
Use this method to delete a message, including service messages, with the following limitations:- A message can only be deleted if it was sent less than 48 hours ago.- Bots can delete outgoing messages in private chats, groups, and supergroups.- Bots can delete incoming messages in private chats.- Bots granted can_post_messages permissions can delete outgoing messages in channels.- If the bot is an administrator of a group, it can delete any message there.- If the bot has can_delete_messages permission in a supergroup or a channel, it can delete any message there.Returns True on success."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE MESSAGE--ID INTEGER)
(LET ((OPTIONS
(LIST (CONS :CHAT_ID CHAT--ID) (CONS :MESSAGE_ID MESSAGE--ID))))
(MAKE-REQUEST BOT "deleteMessage" OPTIONS)))
;----Stickers----
(DEFCLASS *STICKER NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "Sticker")
(FILE--ID :INITARG :FILE--ID :ACCESSOR TG-FILE--ID :TYPE STRING
:DOCUMENTATION "Identifier for this file")
(WIDTH :INITARG :WIDTH :ACCESSOR TG-WIDTH :TYPE INTEGER
:DOCUMENTATION "Sticker width")
(HEIGHT :INITARG :HEIGHT :ACCESSOR TG-HEIGHT :TYPE INTEGER
:DOCUMENTATION "Sticker height")
(IS--ANIMATED :INITARG :IS--ANIMATED :ACCESSOR TG-IS--ANIMATED :TYPE
BOOLEAN :DOCUMENTATION "True, if the sticker is animated")
(THUMB :INITARG :THUMB :INITFORM NIL :ACCESSOR TG-THUMB :TYPE
*PHOTO-SIZE :DOCUMENTATION
"Sticker thumbnail in the .webp or .jpg format")
(EMOJI :INITARG :EMOJI :INITFORM NIL :ACCESSOR TG-EMOJI :TYPE STRING
:DOCUMENTATION "Emoji associated with the sticker")
(SET--NAME :INITARG :SET--NAME :INITFORM NIL :ACCESSOR TG-SET--NAME
:TYPE STRING :DOCUMENTATION
"Name of the sticker set to which the sticker belongs")
(MASK--POSITION :INITARG :MASK--POSITION :INITFORM NIL :ACCESSOR
TG-MASK--POSITION :TYPE *MASK-POSITION :DOCUMENTATION
"For mask stickers, the position where the mask should be placed")
(FILE--SIZE :INITARG :FILE--SIZE :INITFORM NIL :ACCESSOR
TG-FILE--SIZE :TYPE INTEGER :DOCUMENTATION "File size"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#sticker
This object represents a sticker."))
(DEFCLASS *STICKER-SET NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "StickerSet")
(NAME :INITARG :NAME :ACCESSOR TG-NAME :TYPE STRING :DOCUMENTATION
"Sticker set name")
(TITLE :INITARG :TITLE :ACCESSOR TG-TITLE :TYPE STRING
:DOCUMENTATION "Sticker set title")
(IS--ANIMATED :INITARG :IS--ANIMATED :ACCESSOR TG-IS--ANIMATED :TYPE
BOOLEAN :DOCUMENTATION
"True, if the sticker set contains animated stickers")
(CONTAINS--MASKS :INITARG :CONTAINS--MASKS :ACCESSOR
TG-CONTAINS--MASKS :TYPE BOOLEAN :DOCUMENTATION
"True, if the sticker set contains masks")
(STICKERS :INITARG :STICKERS :ACCESSOR TG-STICKERS :TYPE
(ARRAY *STICKER) :DOCUMENTATION "List of all set stickers"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#stickerset
This object represents a sticker set."))
(DEFCLASS *MASK-POSITION NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "MaskPosition")
(POINT :INITARG :POINT :ACCESSOR TG-POINT :TYPE STRING
:DOCUMENTATION
"The part of the face relative to which the mask should be placed. One of “forehead”, “eyes”, “mouth”, or “chin”.")
(X--SHIFT :INITARG :X--SHIFT :ACCESSOR TG-X--SHIFT :TYPE FLOAT
:DOCUMENTATION
"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.")
(Y--SHIFT :INITARG :Y--SHIFT :ACCESSOR TG-Y--SHIFT :TYPE FLOAT
:DOCUMENTATION
"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.")
(SCALE :INITARG :SCALE :ACCESSOR TG-SCALE :TYPE FLOAT :DOCUMENTATION
"Mask scaling coefficient. For example, 2.0 means double size."))
(:DOCUMENTATION "https://core.telegram.org/bots/api#maskposition
This object describes the position on faces where a mask should be placed by default."))
(DEFUN SEND-STICKER
(BOT CHAT--ID STICKER
&KEY DISABLE--NOTIFICATION REPLY--TO--MESSAGE--ID REPLY--MARKUP)
"https://core.telegram.org/bots/api#sendsticker
Use this method to send static .WEBP or animated .TGS stickers. On success, the sent Message is returned."
(CHECK-TYPE CHAT--ID (OR INTEGER STRING))
(CHECK-TYPE STICKER (OR *INPUT-FILE STRING))
(LET ((OPTIONS (LIST (CONS :CHAT_ID CHAT--ID) (CONS :STICKER STICKER))))
(WHEN DISABLE--NOTIFICATION
(NCONC OPTIONS
(LIST (CONS :DISABLE_NOTIFICATION DISABLE--NOTIFICATION))))
(WHEN REPLY--TO--MESSAGE--ID
(NCONC OPTIONS
(LIST (CONS :REPLY_TO_MESSAGE_ID REPLY--TO--MESSAGE--ID))))
(WHEN REPLY--MARKUP
(NCONC OPTIONS (LIST (CONS :REPLY_MARKUP REPLY--MARKUP))))
(MAKE-REQUEST BOT "sendSticker" OPTIONS :RETURN-TYPE '*MESSAGE)))
(DEFUN GET-STICKER-SET (BOT NAME)
"https://core.telegram.org/bots/api#getstickerset
Use this method to get a sticker set. On success, a StickerSet object is returned."
(CHECK-TYPE NAME STRING)
(LET ((OPTIONS (LIST (CONS :NAME NAME))))
(MAKE-REQUEST BOT "getStickerSet" OPTIONS :RETURN-TYPE '*STICKER-SET)))
(DEFUN UPLOAD-STICKER-FILE (BOT USER--ID PNG--STICKER)
"https://core.telegram.org/bots/api#uploadstickerfile
Use this method to upload a .png file with a sticker for later use in createNewStickerSet and addStickerToSet methods (can be used multiple times). Returns the uploaded File on success."
(CHECK-TYPE USER--ID INTEGER)
(CHECK-TYPE PNG--STICKER *INPUT-FILE)
(LET ((OPTIONS
(LIST (CONS :USER_ID USER--ID) (CONS :PNG_STICKER PNG--STICKER))))
(MAKE-REQUEST BOT "uploadStickerFile" OPTIONS :RETURN-TYPE '*FILE)))
(DEFUN CREATE-NEW-STICKER-SET
(BOT USER--ID NAME TITLE PNG--STICKER EMOJIS
&KEY CONTAINS--MASKS MASK--POSITION)
"https://core.telegram.org/bots/api#createnewstickerset
Use this method to create new sticker set owned by a user. The bot will be able to edit the created sticker set. Returns True on success."
(CHECK-TYPE USER--ID INTEGER)
(CHECK-TYPE NAME STRING)
(CHECK-TYPE TITLE STRING)
(CHECK-TYPE PNG--STICKER (OR *INPUT-FILE STRING))
(CHECK-TYPE EMOJIS STRING)
(LET ((OPTIONS
(LIST (CONS :USER_ID USER--ID) (CONS :NAME NAME) (CONS :TITLE TITLE)
(CONS :PNG_STICKER PNG--STICKER) (CONS :EMOJIS EMOJIS))))
(WHEN CONTAINS--MASKS
(NCONC OPTIONS (LIST (CONS :CONTAINS_MASKS CONTAINS--MASKS))))
(WHEN MASK--POSITION
(NCONC OPTIONS (LIST (CONS :MASK_POSITION MASK--POSITION))))
(MAKE-REQUEST BOT "createNewStickerSet" OPTIONS)))
(DEFUN ADD-STICKER-TO-SET
(BOT USER--ID NAME PNG--STICKER EMOJIS &KEY MASK--POSITION)
"https://core.telegram.org/bots/api#addstickertoset
Use this method to add a new sticker to a set created by the bot. Returns True on success."
(CHECK-TYPE USER--ID INTEGER)
(CHECK-TYPE NAME STRING)
(CHECK-TYPE PNG--STICKER (OR *INPUT-FILE STRING))
(CHECK-TYPE EMOJIS STRING)
(LET ((OPTIONS
(LIST (CONS :USER_ID USER--ID) (CONS :NAME NAME)
(CONS :PNG_STICKER PNG--STICKER) (CONS :EMOJIS EMOJIS))))
(WHEN MASK--POSITION
(NCONC OPTIONS (LIST (CONS :MASK_POSITION MASK--POSITION))))
(MAKE-REQUEST BOT "addStickerToSet" OPTIONS)))
(DEFUN SET-STICKER-POSITION-IN-SET (BOT STICKER POSITION)
"https://core.telegram.org/bots/api#setstickerpositioninset
Use this method to move a sticker in a set created by the bot to a specific position . Returns True on success."
(CHECK-TYPE STICKER STRING)
(CHECK-TYPE POSITION INTEGER)
(LET ((OPTIONS (LIST (CONS :STICKER STICKER) (CONS :POSITION POSITION))))
(MAKE-REQUEST BOT "setStickerPositionInSet" OPTIONS)))
(DEFUN DELETE-STICKER-FROM-SET (BOT STICKER)
"https://core.telegram.org/bots/api#deletestickerfromset
Use this method to delete a sticker from a set created by the bot. Returns True on success."
(CHECK-TYPE STICKER STRING)
(LET ((OPTIONS (LIST (CONS :STICKER STICKER))))
(MAKE-REQUEST BOT "deleteStickerFromSet" OPTIONS)))
;----Inline mode----
(DEFCLASS *INLINE-QUERY NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "InlineQuery")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE STRING :DOCUMENTATION
"Unique identifier for this query")
(FROM :INITARG :FROM :ACCESSOR TG-FROM :TYPE *USER :DOCUMENTATION
"Sender")
(LOCATION :INITARG :LOCATION :INITFORM NIL :ACCESSOR TG-LOCATION
:TYPE *LOCATION :DOCUMENTATION
"Sender location, only for bots that request user location")
(QUERY :INITARG :QUERY :ACCESSOR TG-QUERY :TYPE STRING
:DOCUMENTATION "Text of the query (up to 512 characters)")
(OFFSET :INITARG :OFFSET :ACCESSOR TG-OFFSET :TYPE STRING
:DOCUMENTATION
"Offset of the results to be returned, can be controlled by the bot"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#inlinequery
This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results."))
(DEFUN ANSWER-INLINE-QUERY
(BOT INLINE--QUERY--ID RESULTS
&KEY CACHE--TIME IS--PERSONAL NEXT--OFFSET SWITCH--PM--TEXT
SWITCH--PM--PARAMETER)
"https://core.telegram.org/bots/api#answerinlinequery
Use this method to send answers to an inline query. On success, True is returned.No more than 50 results per query are allowed."
(CHECK-TYPE INLINE--QUERY--ID STRING)
(CHECK-TYPE RESULTS (ARRAY *INLINE-QUERY-RESULT))
(LET ((OPTIONS
(LIST (CONS :INLINE_QUERY_ID INLINE--QUERY--ID)
(CONS :RESULTS RESULTS))))
(WHEN CACHE--TIME (NCONC OPTIONS (LIST (CONS :CACHE_TIME CACHE--TIME))))
(WHEN IS--PERSONAL (NCONC OPTIONS (LIST (CONS :IS_PERSONAL IS--PERSONAL))))
(WHEN NEXT--OFFSET (NCONC OPTIONS (LIST (CONS :NEXT_OFFSET NEXT--OFFSET))))
(WHEN SWITCH--PM--TEXT
(NCONC OPTIONS (LIST (CONS :SWITCH_PM_TEXT SWITCH--PM--TEXT))))
(WHEN SWITCH--PM--PARAMETER
(NCONC OPTIONS (LIST (CONS :SWITCH_PM_PARAMETER SWITCH--PM--PARAMETER))))
(MAKE-REQUEST BOT "answerInlineQuery" OPTIONS)))
(DEFUN *INLINE-QUERY-RESULT (BOT)
"https://core.telegram.org/bots/api#inlinequeryresult
This object represents one result of an inline query. Telegram clients currently support results of the following 20 types:"
(LET ((OPTIONS (LIST)))
(MAKE-REQUEST BOT "InlineQueryResult" OPTIONS)))
(DEFCLASS *INLINE-QUERY-RESULT-ARTICLE NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InlineQueryResultArticle")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be article")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE STRING :DOCUMENTATION
"Unique identifier for this result, 1-64 Bytes")
(TITLE :INITARG :TITLE :ACCESSOR TG-TITLE :TYPE STRING
:DOCUMENTATION "Title of the result")
(INPUT--MESSAGE--CONTENT :INITARG :INPUT--MESSAGE--CONTENT :ACCESSOR
TG-INPUT--MESSAGE--CONTENT :TYPE *INPUT-MESSAGE-CONTENT
:DOCUMENTATION "Content of the message to be sent")
(REPLY--MARKUP :INITARG :REPLY--MARKUP :INITFORM NIL :ACCESSOR
TG-REPLY--MARKUP :TYPE *INLINE-KEYBOARD-MARKUP :DOCUMENTATION
"Inline keyboard attached to the message")
(URL :INITARG :URL :INITFORM NIL :ACCESSOR TG-URL :TYPE STRING
:DOCUMENTATION "URL of the result")
(HIDE--URL :INITARG :HIDE--URL :INITFORM NIL :ACCESSOR TG-HIDE--URL
:TYPE BOOLEAN :DOCUMENTATION
"Pass True, if you don't want the URL to be shown in the message")
(DESCRIPTION :INITARG :DESCRIPTION :INITFORM NIL :ACCESSOR
TG-DESCRIPTION :TYPE STRING :DOCUMENTATION
"Short description of the result")
(THUMB--URL :INITARG :THUMB--URL :INITFORM NIL :ACCESSOR
TG-THUMB--URL :TYPE STRING :DOCUMENTATION
"Url of the thumbnail for the result")
(THUMB--WIDTH :INITARG :THUMB--WIDTH :INITFORM NIL :ACCESSOR
TG-THUMB--WIDTH :TYPE INTEGER :DOCUMENTATION "Thumbnail width")
(THUMB--HEIGHT :INITARG :THUMB--HEIGHT :INITFORM NIL :ACCESSOR
TG-THUMB--HEIGHT :TYPE INTEGER :DOCUMENTATION "Thumbnail height"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inlinequeryresultarticle
Represents a link to an article or web page."))
(DEFCLASS *INLINE-QUERY-RESULT-PHOTO NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InlineQueryResultPhoto")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be photo")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE STRING :DOCUMENTATION
"Unique identifier for this result, 1-64 bytes")
(PHOTO--URL :INITARG :PHOTO--URL :ACCESSOR TG-PHOTO--URL :TYPE
STRING :DOCUMENTATION
"A valid URL of the photo. Photo must be in jpeg format. Photo size must not exceed 5MB")
(THUMB--URL :INITARG :THUMB--URL :ACCESSOR TG-THUMB--URL :TYPE
STRING :DOCUMENTATION "URL of the thumbnail for the photo")
(PHOTO--WIDTH :INITARG :PHOTO--WIDTH :INITFORM NIL :ACCESSOR
TG-PHOTO--WIDTH :TYPE INTEGER :DOCUMENTATION "Width of the photo")
(PHOTO--HEIGHT :INITARG :PHOTO--HEIGHT :INITFORM NIL :ACCESSOR
TG-PHOTO--HEIGHT :TYPE INTEGER :DOCUMENTATION
"Height of the photo")
(TITLE :INITARG :TITLE :INITFORM NIL :ACCESSOR TG-TITLE :TYPE STRING
:DOCUMENTATION "Title for the result")
(DESCRIPTION :INITARG :DESCRIPTION :INITFORM NIL :ACCESSOR
TG-DESCRIPTION :TYPE STRING :DOCUMENTATION
"Short description of the result")
(CAPTION :INITARG :CAPTION :INITFORM NIL :ACCESSOR TG-CAPTION :TYPE
STRING :DOCUMENTATION
"Caption of the photo to be sent, 0-1024 characters")
(PARSE--MODE :INITARG :PARSE--MODE :INITFORM NIL :ACCESSOR
TG-PARSE--MODE :TYPE STRING :DOCUMENTATION
"Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.")
(REPLY--MARKUP :INITARG :REPLY--MARKUP :INITFORM NIL :ACCESSOR
TG-REPLY--MARKUP :TYPE *INLINE-KEYBOARD-MARKUP :DOCUMENTATION
"Inline keyboard attached to the message")
(INPUT--MESSAGE--CONTENT :INITARG :INPUT--MESSAGE--CONTENT :INITFORM
NIL :ACCESSOR TG-INPUT--MESSAGE--CONTENT :TYPE
*INPUT-MESSAGE-CONTENT :DOCUMENTATION
"Content of the message to be sent instead of the photo"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inlinequeryresultphoto
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."))
(DEFCLASS *INLINE-QUERY-RESULT-GIF NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InlineQueryResultGif")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be gif")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE STRING :DOCUMENTATION
"Unique identifier for this result, 1-64 bytes")
(GIF--URL :INITARG :GIF--URL :ACCESSOR TG-GIF--URL :TYPE STRING
:DOCUMENTATION
"A valid URL for the GIF file. File size must not exceed 1MB")
(GIF--WIDTH :INITARG :GIF--WIDTH :INITFORM NIL :ACCESSOR
TG-GIF--WIDTH :TYPE INTEGER :DOCUMENTATION "Width of the GIF")
(GIF--HEIGHT :INITARG :GIF--HEIGHT :INITFORM NIL :ACCESSOR
TG-GIF--HEIGHT :TYPE INTEGER :DOCUMENTATION "Height of the GIF")
(GIF--DURATION :INITARG :GIF--DURATION :INITFORM NIL :ACCESSOR
TG-GIF--DURATION :TYPE INTEGER :DOCUMENTATION
"Duration of the GIF")
(THUMB--URL :INITARG :THUMB--URL :ACCESSOR TG-THUMB--URL :TYPE
STRING :DOCUMENTATION
"URL of the static thumbnail for the result (jpeg or gif)")
(TITLE :INITARG :TITLE :INITFORM NIL :ACCESSOR TG-TITLE :TYPE STRING
:DOCUMENTATION "Title for the result")
(CAPTION :INITARG :CAPTION :INITFORM NIL :ACCESSOR TG-CAPTION :TYPE
STRING :DOCUMENTATION
"Caption of the GIF file to be sent, 0-1024 characters")
(PARSE--MODE :INITARG :PARSE--MODE :INITFORM NIL :ACCESSOR
TG-PARSE--MODE :TYPE STRING :DOCUMENTATION
"Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.")
(REPLY--MARKUP :INITARG :REPLY--MARKUP :INITFORM NIL :ACCESSOR
TG-REPLY--MARKUP :TYPE *INLINE-KEYBOARD-MARKUP :DOCUMENTATION
"Inline keyboard attached to the message")
(INPUT--MESSAGE--CONTENT :INITARG :INPUT--MESSAGE--CONTENT :INITFORM
NIL :ACCESSOR TG-INPUT--MESSAGE--CONTENT :TYPE
*INPUT-MESSAGE-CONTENT :DOCUMENTATION
"Content of the message to be sent instead of the GIF animation"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inlinequeryresultgif
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."))
(DEFCLASS *INLINE-QUERY-RESULT-MPEG-4-*GIF NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InlineQueryResultMpeg4Gif")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be mpeg4_gif")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE STRING :DOCUMENTATION
"Unique identifier for this result, 1-64 bytes")
(MPEG-4--URL :INITARG :MPEG-4--URL :ACCESSOR TG-MPEG-4--URL :TYPE
STRING :DOCUMENTATION
"A valid URL for the MP4 file. File size must not exceed 1MB")
(MPEG-4--WIDTH :INITARG :MPEG-4--WIDTH :INITFORM NIL :ACCESSOR
TG-MPEG-4--WIDTH :TYPE INTEGER :DOCUMENTATION "Video width")
(MPEG-4--HEIGHT :INITARG :MPEG-4--HEIGHT :INITFORM NIL :ACCESSOR
TG-MPEG-4--HEIGHT :TYPE INTEGER :DOCUMENTATION "Video height")
(MPEG-4--DURATION :INITARG :MPEG-4--DURATION :INITFORM NIL :ACCESSOR
TG-MPEG-4--DURATION :TYPE INTEGER :DOCUMENTATION "Video duration")
(THUMB--URL :INITARG :THUMB--URL :ACCESSOR TG-THUMB--URL :TYPE
STRING :DOCUMENTATION
"URL of the static thumbnail (jpeg or gif) for the result")
(TITLE :INITARG :TITLE :INITFORM NIL :ACCESSOR TG-TITLE :TYPE STRING
:DOCUMENTATION "Title for the result")
(CAPTION :INITARG :CAPTION :INITFORM NIL :ACCESSOR TG-CAPTION :TYPE
STRING :DOCUMENTATION
"Caption of the MPEG-4 file to be sent, 0-1024 characters")
(PARSE--MODE :INITARG :PARSE--MODE :INITFORM NIL :ACCESSOR
TG-PARSE--MODE :TYPE STRING :DOCUMENTATION
"Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.")
(REPLY--MARKUP :INITARG :REPLY--MARKUP :INITFORM NIL :ACCESSOR
TG-REPLY--MARKUP :TYPE *INLINE-KEYBOARD-MARKUP :DOCUMENTATION
"Inline keyboard attached to the message")
(INPUT--MESSAGE--CONTENT :INITARG :INPUT--MESSAGE--CONTENT :INITFORM
NIL :ACCESSOR TG-INPUT--MESSAGE--CONTENT :TYPE
*INPUT-MESSAGE-CONTENT :DOCUMENTATION
"Content of the message to be sent instead of the video animation"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inlinequeryresultmpeg4gif
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."))
(DEFCLASS *INLINE-QUERY-RESULT-VIDEO NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InlineQueryResultVideo")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be video")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE STRING :DOCUMENTATION
"Unique identifier for this result, 1-64 bytes")
(VIDEO--URL :INITARG :VIDEO--URL :ACCESSOR TG-VIDEO--URL :TYPE
STRING :DOCUMENTATION
"A valid URL for the embedded video player or video file")
(MIME--TYPE :INITARG :MIME--TYPE :ACCESSOR TG-MIME--TYPE :TYPE
STRING :DOCUMENTATION
"Mime type of the content of video url, “text/html” or “video/mp4”")
(THUMB--URL :INITARG :THUMB--URL :ACCESSOR TG-THUMB--URL :TYPE
STRING :DOCUMENTATION
"URL of the thumbnail (jpeg only) for the video")
(TITLE :INITARG :TITLE :ACCESSOR TG-TITLE :TYPE STRING
:DOCUMENTATION "Title for the result")
(CAPTION :INITARG :CAPTION :INITFORM NIL :ACCESSOR TG-CAPTION :TYPE
STRING :DOCUMENTATION
"Caption of the video to be sent, 0-1024 characters")
(PARSE--MODE :INITARG :PARSE--MODE :INITFORM NIL :ACCESSOR
TG-PARSE--MODE :TYPE STRING :DOCUMENTATION
"Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.")
(VIDEO--WIDTH :INITARG :VIDEO--WIDTH :INITFORM NIL :ACCESSOR
TG-VIDEO--WIDTH :TYPE INTEGER :DOCUMENTATION "Video width")
(VIDEO--HEIGHT :INITARG :VIDEO--HEIGHT :INITFORM NIL :ACCESSOR
TG-VIDEO--HEIGHT :TYPE INTEGER :DOCUMENTATION "Video height")
(VIDEO--DURATION :INITARG :VIDEO--DURATION :INITFORM NIL :ACCESSOR
TG-VIDEO--DURATION :TYPE INTEGER :DOCUMENTATION
"Video duration in seconds")
(DESCRIPTION :INITARG :DESCRIPTION :INITFORM NIL :ACCESSOR
TG-DESCRIPTION :TYPE STRING :DOCUMENTATION
"Short description of the result")
(REPLY--MARKUP :INITARG :REPLY--MARKUP :INITFORM NIL :ACCESSOR
TG-REPLY--MARKUP :TYPE *INLINE-KEYBOARD-MARKUP :DOCUMENTATION
"Inline keyboard attached to the message")
(INPUT--MESSAGE--CONTENT :INITARG :INPUT--MESSAGE--CONTENT :INITFORM
NIL :ACCESSOR TG-INPUT--MESSAGE--CONTENT :TYPE
*INPUT-MESSAGE-CONTENT :DOCUMENTATION
"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)."))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inlinequeryresultvideo
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."))
(DEFCLASS *INLINE-QUERY-RESULT-AUDIO NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InlineQueryResultAudio")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be audio")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE STRING :DOCUMENTATION
"Unique identifier for this result, 1-64 bytes")
(AUDIO--URL :INITARG :AUDIO--URL :ACCESSOR TG-AUDIO--URL :TYPE
STRING :DOCUMENTATION "A valid URL for the audio file")
(TITLE :INITARG :TITLE :ACCESSOR TG-TITLE :TYPE STRING
:DOCUMENTATION "Title")
(CAPTION :INITARG :CAPTION :INITFORM NIL :ACCESSOR TG-CAPTION :TYPE
STRING :DOCUMENTATION "Caption, 0-1024 characters")
(PARSE--MODE :INITARG :PARSE--MODE :INITFORM NIL :ACCESSOR
TG-PARSE--MODE :TYPE STRING :DOCUMENTATION
"Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.")
(PERFORMER :INITARG :PERFORMER :INITFORM NIL :ACCESSOR TG-PERFORMER
:TYPE STRING :DOCUMENTATION "Performer")
(AUDIO--DURATION :INITARG :AUDIO--DURATION :INITFORM NIL :ACCESSOR
TG-AUDIO--DURATION :TYPE INTEGER :DOCUMENTATION
"Audio duration in seconds")
(REPLY--MARKUP :INITARG :REPLY--MARKUP :INITFORM NIL :ACCESSOR
TG-REPLY--MARKUP :TYPE *INLINE-KEYBOARD-MARKUP :DOCUMENTATION
"Inline keyboard attached to the message")
(INPUT--MESSAGE--CONTENT :INITARG :INPUT--MESSAGE--CONTENT :INITFORM
NIL :ACCESSOR TG-INPUT--MESSAGE--CONTENT :TYPE
*INPUT-MESSAGE-CONTENT :DOCUMENTATION
"Content of the message to be sent instead of the audio"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inlinequeryresultaudio
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."))
(DEFCLASS *INLINE-QUERY-RESULT-VOICE NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InlineQueryResultVoice")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be voice")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE STRING :DOCUMENTATION
"Unique identifier for this result, 1-64 bytes")
(VOICE--URL :INITARG :VOICE--URL :ACCESSOR TG-VOICE--URL :TYPE
STRING :DOCUMENTATION "A valid URL for the voice recording")
(TITLE :INITARG :TITLE :ACCESSOR TG-TITLE :TYPE STRING
:DOCUMENTATION "Recording title")
(CAPTION :INITARG :CAPTION :INITFORM NIL :ACCESSOR TG-CAPTION :TYPE
STRING :DOCUMENTATION "Caption, 0-1024 characters")
(PARSE--MODE :INITARG :PARSE--MODE :INITFORM NIL :ACCESSOR
TG-PARSE--MODE :TYPE STRING :DOCUMENTATION
"Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.")
(VOICE--DURATION :INITARG :VOICE--DURATION :INITFORM NIL :ACCESSOR
TG-VOICE--DURATION :TYPE INTEGER :DOCUMENTATION
"Recording duration in seconds")
(REPLY--MARKUP :INITARG :REPLY--MARKUP :INITFORM NIL :ACCESSOR
TG-REPLY--MARKUP :TYPE *INLINE-KEYBOARD-MARKUP :DOCUMENTATION
"Inline keyboard attached to the message")
(INPUT--MESSAGE--CONTENT :INITARG :INPUT--MESSAGE--CONTENT :INITFORM
NIL :ACCESSOR TG-INPUT--MESSAGE--CONTENT :TYPE
*INPUT-MESSAGE-CONTENT :DOCUMENTATION
"Content of the message to be sent instead of the voice recording"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inlinequeryresultvoice
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."))
(DEFCLASS *INLINE-QUERY-RESULT-DOCUMENT NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InlineQueryResultDocument")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be document")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE STRING :DOCUMENTATION
"Unique identifier for this result, 1-64 bytes")
(TITLE :INITARG :TITLE :ACCESSOR TG-TITLE :TYPE STRING
:DOCUMENTATION "Title for the result")
(CAPTION :INITARG :CAPTION :INITFORM NIL :ACCESSOR TG-CAPTION :TYPE
STRING :DOCUMENTATION
"Caption of the document to be sent, 0-1024 characters")
(PARSE--MODE :INITARG :PARSE--MODE :INITFORM NIL :ACCESSOR
TG-PARSE--MODE :TYPE STRING :DOCUMENTATION
"Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.")
(DOCUMENT--URL :INITARG :DOCUMENT--URL :ACCESSOR TG-DOCUMENT--URL
:TYPE STRING :DOCUMENTATION "A valid URL for the file")
(MIME--TYPE :INITARG :MIME--TYPE :ACCESSOR TG-MIME--TYPE :TYPE
STRING :DOCUMENTATION
"Mime type of the content of the file, either “application/pdf” or “application/zip”")
(DESCRIPTION :INITARG :DESCRIPTION :INITFORM NIL :ACCESSOR
TG-DESCRIPTION :TYPE STRING :DOCUMENTATION
"Short description of the result")
(REPLY--MARKUP :INITARG :REPLY--MARKUP :INITFORM NIL :ACCESSOR
TG-REPLY--MARKUP :TYPE *INLINE-KEYBOARD-MARKUP :DOCUMENTATION
"Inline keyboard attached to the message")
(INPUT--MESSAGE--CONTENT :INITARG :INPUT--MESSAGE--CONTENT :INITFORM
NIL :ACCESSOR TG-INPUT--MESSAGE--CONTENT :TYPE
*INPUT-MESSAGE-CONTENT :DOCUMENTATION
"Content of the message to be sent instead of the file")
(THUMB--URL :INITARG :THUMB--URL :INITFORM NIL :ACCESSOR
TG-THUMB--URL :TYPE STRING :DOCUMENTATION
"URL of the thumbnail (jpeg only) for the file")
(THUMB--WIDTH :INITARG :THUMB--WIDTH :INITFORM NIL :ACCESSOR
TG-THUMB--WIDTH :TYPE INTEGER :DOCUMENTATION "Thumbnail width")
(THUMB--HEIGHT :INITARG :THUMB--HEIGHT :INITFORM NIL :ACCESSOR
TG-THUMB--HEIGHT :TYPE INTEGER :DOCUMENTATION "Thumbnail height"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inlinequeryresultdocument
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."))
(DEFCLASS *INLINE-QUERY-RESULT-LOCATION NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InlineQueryResultLocation")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be location")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE STRING :DOCUMENTATION
"Unique identifier for this result, 1-64 Bytes")
(LATITUDE :INITARG :LATITUDE :ACCESSOR TG-LATITUDE :TYPE FLOAT
:DOCUMENTATION "Location latitude in degrees")
(LONGITUDE :INITARG :LONGITUDE :ACCESSOR TG-LONGITUDE :TYPE FLOAT
:DOCUMENTATION "Location longitude in degrees")
(TITLE :INITARG :TITLE :ACCESSOR TG-TITLE :TYPE STRING
:DOCUMENTATION "Location title")
(LIVE--PERIOD :INITARG :LIVE--PERIOD :INITFORM NIL :ACCESSOR
TG-LIVE--PERIOD :TYPE INTEGER :DOCUMENTATION
"Period in seconds for which the location can be updated, should be between 60 and 86400.")
(REPLY--MARKUP :INITARG :REPLY--MARKUP :INITFORM NIL :ACCESSOR
TG-REPLY--MARKUP :TYPE *INLINE-KEYBOARD-MARKUP :DOCUMENTATION
"Inline keyboard attached to the message")
(INPUT--MESSAGE--CONTENT :INITARG :INPUT--MESSAGE--CONTENT :INITFORM
NIL :ACCESSOR TG-INPUT--MESSAGE--CONTENT :TYPE
*INPUT-MESSAGE-CONTENT :DOCUMENTATION
"Content of the message to be sent instead of the location")
(THUMB--URL :INITARG :THUMB--URL :INITFORM NIL :ACCESSOR
TG-THUMB--URL :TYPE STRING :DOCUMENTATION
"Url of the thumbnail for the result")
(THUMB--WIDTH :INITARG :THUMB--WIDTH :INITFORM NIL :ACCESSOR
TG-THUMB--WIDTH :TYPE INTEGER :DOCUMENTATION "Thumbnail width")
(THUMB--HEIGHT :INITARG :THUMB--HEIGHT :INITFORM NIL :ACCESSOR
TG-THUMB--HEIGHT :TYPE INTEGER :DOCUMENTATION "Thumbnail height"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inlinequeryresultlocation
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."))
(DEFCLASS *INLINE-QUERY-RESULT-VENUE NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InlineQueryResultVenue")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be venue")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE STRING :DOCUMENTATION
"Unique identifier for this result, 1-64 Bytes")
(LATITUDE :INITARG :LATITUDE :ACCESSOR TG-LATITUDE :TYPE *FLOAT
:DOCUMENTATION "Latitude of the venue location in degrees")
(LONGITUDE :INITARG :LONGITUDE :ACCESSOR TG-LONGITUDE :TYPE *FLOAT
:DOCUMENTATION "Longitude of the venue location in degrees")
(TITLE :INITARG :TITLE :ACCESSOR TG-TITLE :TYPE STRING
:DOCUMENTATION "Title of the venue")
(ADDRESS :INITARG :ADDRESS :ACCESSOR TG-ADDRESS :TYPE STRING
:DOCUMENTATION "Address of the venue")
(FOURSQUARE--ID :INITARG :FOURSQUARE--ID :INITFORM NIL :ACCESSOR
TG-FOURSQUARE--ID :TYPE STRING :DOCUMENTATION
"Foursquare identifier of the venue if known")
(FOURSQUARE--TYPE :INITARG :FOURSQUARE--TYPE :INITFORM NIL :ACCESSOR
TG-FOURSQUARE--TYPE :TYPE STRING :DOCUMENTATION
"Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)")
(REPLY--MARKUP :INITARG :REPLY--MARKUP :INITFORM NIL :ACCESSOR
TG-REPLY--MARKUP :TYPE *INLINE-KEYBOARD-MARKUP :DOCUMENTATION
"Inline keyboard attached to the message")
(INPUT--MESSAGE--CONTENT :INITARG :INPUT--MESSAGE--CONTENT :INITFORM
NIL :ACCESSOR TG-INPUT--MESSAGE--CONTENT :TYPE
*INPUT-MESSAGE-CONTENT :DOCUMENTATION
"Content of the message to be sent instead of the venue")
(THUMB--URL :INITARG :THUMB--URL :INITFORM NIL :ACCESSOR
TG-THUMB--URL :TYPE STRING :DOCUMENTATION
"Url of the thumbnail for the result")
(THUMB--WIDTH :INITARG :THUMB--WIDTH :INITFORM NIL :ACCESSOR
TG-THUMB--WIDTH :TYPE INTEGER :DOCUMENTATION "Thumbnail width")
(THUMB--HEIGHT :INITARG :THUMB--HEIGHT :INITFORM NIL :ACCESSOR
TG-THUMB--HEIGHT :TYPE INTEGER :DOCUMENTATION "Thumbnail height"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inlinequeryresultvenue
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."))
(DEFCLASS *INLINE-QUERY-RESULT-CONTACT NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InlineQueryResultContact")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be contact")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE STRING :DOCUMENTATION
"Unique identifier for this result, 1-64 Bytes")
(PHONE--NUMBER :INITARG :PHONE--NUMBER :ACCESSOR TG-PHONE--NUMBER
:TYPE STRING :DOCUMENTATION "Contact's phone number")
(FIRST--NAME :INITARG :FIRST--NAME :ACCESSOR TG-FIRST--NAME :TYPE
STRING :DOCUMENTATION "Contact's first name")
(LAST--NAME :INITARG :LAST--NAME :INITFORM NIL :ACCESSOR
TG-LAST--NAME :TYPE STRING :DOCUMENTATION "Contact's last name")
(VCARD :INITARG :VCARD :INITFORM NIL :ACCESSOR TG-VCARD :TYPE STRING
:DOCUMENTATION
"Additional data about the contact in the form of a vCard, 0-2048 bytes")
(REPLY--MARKUP :INITARG :REPLY--MARKUP :INITFORM NIL :ACCESSOR
TG-REPLY--MARKUP :TYPE *INLINE-KEYBOARD-MARKUP :DOCUMENTATION
"Inline keyboard attached to the message")
(INPUT--MESSAGE--CONTENT :INITARG :INPUT--MESSAGE--CONTENT :INITFORM
NIL :ACCESSOR TG-INPUT--MESSAGE--CONTENT :TYPE
*INPUT-MESSAGE-CONTENT :DOCUMENTATION
"Content of the message to be sent instead of the contact")
(THUMB--URL :INITARG :THUMB--URL :INITFORM NIL :ACCESSOR
TG-THUMB--URL :TYPE STRING :DOCUMENTATION
"Url of the thumbnail for the result")
(THUMB--WIDTH :INITARG :THUMB--WIDTH :INITFORM NIL :ACCESSOR
TG-THUMB--WIDTH :TYPE INTEGER :DOCUMENTATION "Thumbnail width")
(THUMB--HEIGHT :INITARG :THUMB--HEIGHT :INITFORM NIL :ACCESSOR
TG-THUMB--HEIGHT :TYPE INTEGER :DOCUMENTATION "Thumbnail height"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inlinequeryresultcontact
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."))
(DEFCLASS *INLINE-QUERY-RESULT-GAME NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InlineQueryResultGame")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be game")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE STRING :DOCUMENTATION
"Unique identifier for this result, 1-64 bytes")
(GAME--SHORT--NAME :INITARG :GAME--SHORT--NAME :ACCESSOR
TG-GAME--SHORT--NAME :TYPE STRING :DOCUMENTATION
"Short name of the game")
(REPLY--MARKUP :INITARG :REPLY--MARKUP :INITFORM NIL :ACCESSOR
TG-REPLY--MARKUP :TYPE *INLINE-KEYBOARD-MARKUP :DOCUMENTATION
"Inline keyboard attached to the message"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inlinequeryresultgame
Represents a Game."))
(DEFCLASS *INLINE-QUERY-RESULT-CACHED-PHOTO NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InlineQueryResultCachedPhoto")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be photo")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE STRING :DOCUMENTATION
"Unique identifier for this result, 1-64 bytes")
(PHOTO--FILE--ID :INITARG :PHOTO--FILE--ID :ACCESSOR
TG-PHOTO--FILE--ID :TYPE STRING :DOCUMENTATION
"A valid file identifier of the photo")
(TITLE :INITARG :TITLE :INITFORM NIL :ACCESSOR TG-TITLE :TYPE STRING
:DOCUMENTATION "Title for the result")
(DESCRIPTION :INITARG :DESCRIPTION :INITFORM NIL :ACCESSOR
TG-DESCRIPTION :TYPE STRING :DOCUMENTATION
"Short description of the result")
(CAPTION :INITARG :CAPTION :INITFORM NIL :ACCESSOR TG-CAPTION :TYPE
STRING :DOCUMENTATION
"Caption of the photo to be sent, 0-1024 characters")
(PARSE--MODE :INITARG :PARSE--MODE :INITFORM NIL :ACCESSOR
TG-PARSE--MODE :TYPE STRING :DOCUMENTATION
"Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.")
(REPLY--MARKUP :INITARG :REPLY--MARKUP :INITFORM NIL :ACCESSOR
TG-REPLY--MARKUP :TYPE *INLINE-KEYBOARD-MARKUP :DOCUMENTATION
"Inline keyboard attached to the message")
(INPUT--MESSAGE--CONTENT :INITARG :INPUT--MESSAGE--CONTENT :INITFORM
NIL :ACCESSOR TG-INPUT--MESSAGE--CONTENT :TYPE
*INPUT-MESSAGE-CONTENT :DOCUMENTATION
"Content of the message to be sent instead of the photo"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inlinequeryresultcachedphoto
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."))
(DEFCLASS *INLINE-QUERY-RESULT-CACHED-GIF NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InlineQueryResultCachedGif")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be gif")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE STRING :DOCUMENTATION
"Unique identifier for this result, 1-64 bytes")
(GIF--FILE--ID :INITARG :GIF--FILE--ID :ACCESSOR TG-GIF--FILE--ID
:TYPE STRING :DOCUMENTATION
"A valid file identifier for the GIF file")
(TITLE :INITARG :TITLE :INITFORM NIL :ACCESSOR TG-TITLE :TYPE STRING
:DOCUMENTATION "Title for the result")
(CAPTION :INITARG :CAPTION :INITFORM NIL :ACCESSOR TG-CAPTION :TYPE
STRING :DOCUMENTATION
"Caption of the GIF file to be sent, 0-1024 characters")
(PARSE--MODE :INITARG :PARSE--MODE :INITFORM NIL :ACCESSOR
TG-PARSE--MODE :TYPE STRING :DOCUMENTATION
"Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.")
(REPLY--MARKUP :INITARG :REPLY--MARKUP :INITFORM NIL :ACCESSOR
TG-REPLY--MARKUP :TYPE *INLINE-KEYBOARD-MARKUP :DOCUMENTATION
"Inline keyboard attached to the message")
(INPUT--MESSAGE--CONTENT :INITARG :INPUT--MESSAGE--CONTENT :INITFORM
NIL :ACCESSOR TG-INPUT--MESSAGE--CONTENT :TYPE
*INPUT-MESSAGE-CONTENT :DOCUMENTATION
"Content of the message to be sent instead of the GIF animation"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inlinequeryresultcachedgif
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."))
(DEFCLASS *INLINE-QUERY-RESULT-CACHED-MPEG-4-*GIF NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InlineQueryResultCachedMpeg4Gif")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be mpeg4_gif")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE STRING :DOCUMENTATION
"Unique identifier for this result, 1-64 bytes")
(MPEG-4--FILE--ID :INITARG :MPEG-4--FILE--ID :ACCESSOR
TG-MPEG-4--FILE--ID :TYPE STRING :DOCUMENTATION
"A valid file identifier for the MP4 file")
(TITLE :INITARG :TITLE :INITFORM NIL :ACCESSOR TG-TITLE :TYPE STRING
:DOCUMENTATION "Title for the result")
(CAPTION :INITARG :CAPTION :INITFORM NIL :ACCESSOR TG-CAPTION :TYPE
STRING :DOCUMENTATION
"Caption of the MPEG-4 file to be sent, 0-1024 characters")
(PARSE--MODE :INITARG :PARSE--MODE :INITFORM NIL :ACCESSOR
TG-PARSE--MODE :TYPE STRING :DOCUMENTATION
"Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.")
(REPLY--MARKUP :INITARG :REPLY--MARKUP :INITFORM NIL :ACCESSOR
TG-REPLY--MARKUP :TYPE *INLINE-KEYBOARD-MARKUP :DOCUMENTATION
"Inline keyboard attached to the message")
(INPUT--MESSAGE--CONTENT :INITARG :INPUT--MESSAGE--CONTENT :INITFORM
NIL :ACCESSOR TG-INPUT--MESSAGE--CONTENT :TYPE
*INPUT-MESSAGE-CONTENT :DOCUMENTATION
"Content of the message to be sent instead of the video animation"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inlinequeryresultcachedmpeg4gif
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."))
(DEFCLASS *INLINE-QUERY-RESULT-CACHED-STICKER NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InlineQueryResultCachedSticker")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be sticker")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE STRING :DOCUMENTATION
"Unique identifier for this result, 1-64 bytes")
(STICKER--FILE--ID :INITARG :STICKER--FILE--ID :ACCESSOR
TG-STICKER--FILE--ID :TYPE STRING :DOCUMENTATION
"A valid file identifier of the sticker")
(REPLY--MARKUP :INITARG :REPLY--MARKUP :INITFORM NIL :ACCESSOR
TG-REPLY--MARKUP :TYPE *INLINE-KEYBOARD-MARKUP :DOCUMENTATION
"Inline keyboard attached to the message")
(INPUT--MESSAGE--CONTENT :INITARG :INPUT--MESSAGE--CONTENT :INITFORM
NIL :ACCESSOR TG-INPUT--MESSAGE--CONTENT :TYPE
*INPUT-MESSAGE-CONTENT :DOCUMENTATION
"Content of the message to be sent instead of the sticker"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inlinequeryresultcachedsticker
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."))
(DEFCLASS *INLINE-QUERY-RESULT-CACHED-DOCUMENT NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InlineQueryResultCachedDocument")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be document")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE STRING :DOCUMENTATION
"Unique identifier for this result, 1-64 bytes")
(TITLE :INITARG :TITLE :ACCESSOR TG-TITLE :TYPE STRING
:DOCUMENTATION "Title for the result")
(DOCUMENT--FILE--ID :INITARG :DOCUMENT--FILE--ID :ACCESSOR
TG-DOCUMENT--FILE--ID :TYPE STRING :DOCUMENTATION
"A valid file identifier for the file")
(DESCRIPTION :INITARG :DESCRIPTION :INITFORM NIL :ACCESSOR
TG-DESCRIPTION :TYPE STRING :DOCUMENTATION
"Short description of the result")
(CAPTION :INITARG :CAPTION :INITFORM NIL :ACCESSOR TG-CAPTION :TYPE
STRING :DOCUMENTATION
"Caption of the document to be sent, 0-1024 characters")
(PARSE--MODE :INITARG :PARSE--MODE :INITFORM NIL :ACCESSOR
TG-PARSE--MODE :TYPE STRING :DOCUMENTATION
"Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.")
(REPLY--MARKUP :INITARG :REPLY--MARKUP :INITFORM NIL :ACCESSOR
TG-REPLY--MARKUP :TYPE *INLINE-KEYBOARD-MARKUP :DOCUMENTATION
"Inline keyboard attached to the message")
(INPUT--MESSAGE--CONTENT :INITARG :INPUT--MESSAGE--CONTENT :INITFORM
NIL :ACCESSOR TG-INPUT--MESSAGE--CONTENT :TYPE
*INPUT-MESSAGE-CONTENT :DOCUMENTATION
"Content of the message to be sent instead of the file"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inlinequeryresultcacheddocument
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."))
(DEFCLASS *INLINE-QUERY-RESULT-CACHED-VIDEO NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InlineQueryResultCachedVideo")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be video")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE STRING :DOCUMENTATION
"Unique identifier for this result, 1-64 bytes")
(VIDEO--FILE--ID :INITARG :VIDEO--FILE--ID :ACCESSOR
TG-VIDEO--FILE--ID :TYPE STRING :DOCUMENTATION
"A valid file identifier for the video file")
(TITLE :INITARG :TITLE :ACCESSOR TG-TITLE :TYPE STRING
:DOCUMENTATION "Title for the result")
(DESCRIPTION :INITARG :DESCRIPTION :INITFORM NIL :ACCESSOR
TG-DESCRIPTION :TYPE STRING :DOCUMENTATION
"Short description of the result")
(CAPTION :INITARG :CAPTION :INITFORM NIL :ACCESSOR TG-CAPTION :TYPE
STRING :DOCUMENTATION
"Caption of the video to be sent, 0-1024 characters")
(PARSE--MODE :INITARG :PARSE--MODE :INITFORM NIL :ACCESSOR
TG-PARSE--MODE :TYPE STRING :DOCUMENTATION
"Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.")
(REPLY--MARKUP :INITARG :REPLY--MARKUP :INITFORM NIL :ACCESSOR
TG-REPLY--MARKUP :TYPE *INLINE-KEYBOARD-MARKUP :DOCUMENTATION
"Inline keyboard attached to the message")
(INPUT--MESSAGE--CONTENT :INITARG :INPUT--MESSAGE--CONTENT :INITFORM
NIL :ACCESSOR TG-INPUT--MESSAGE--CONTENT :TYPE
*INPUT-MESSAGE-CONTENT :DOCUMENTATION
"Content of the message to be sent instead of the video"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inlinequeryresultcachedvideo
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."))
(DEFCLASS *INLINE-QUERY-RESULT-CACHED-VOICE NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InlineQueryResultCachedVoice")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be voice")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE STRING :DOCUMENTATION
"Unique identifier for this result, 1-64 bytes")
(VOICE--FILE--ID :INITARG :VOICE--FILE--ID :ACCESSOR
TG-VOICE--FILE--ID :TYPE STRING :DOCUMENTATION
"A valid file identifier for the voice message")
(TITLE :INITARG :TITLE :ACCESSOR TG-TITLE :TYPE STRING
:DOCUMENTATION "Voice message title")
(CAPTION :INITARG :CAPTION :INITFORM NIL :ACCESSOR TG-CAPTION :TYPE
STRING :DOCUMENTATION "Caption, 0-1024 characters")
(PARSE--MODE :INITARG :PARSE--MODE :INITFORM NIL :ACCESSOR
TG-PARSE--MODE :TYPE STRING :DOCUMENTATION
"Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.")
(REPLY--MARKUP :INITARG :REPLY--MARKUP :INITFORM NIL :ACCESSOR
TG-REPLY--MARKUP :TYPE *INLINE-KEYBOARD-MARKUP :DOCUMENTATION
"Inline keyboard attached to the message")
(INPUT--MESSAGE--CONTENT :INITARG :INPUT--MESSAGE--CONTENT :INITFORM
NIL :ACCESSOR TG-INPUT--MESSAGE--CONTENT :TYPE
*INPUT-MESSAGE-CONTENT :DOCUMENTATION
"Content of the message to be sent instead of the voice message"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inlinequeryresultcachedvoice
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."))
(DEFCLASS *INLINE-QUERY-RESULT-CACHED-AUDIO NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InlineQueryResultCachedAudio")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of the result, must be audio")
(ID :INITARG :ID :ACCESSOR TG-ID :TYPE STRING :DOCUMENTATION
"Unique identifier for this result, 1-64 bytes")
(AUDIO--FILE--ID :INITARG :AUDIO--FILE--ID :ACCESSOR
TG-AUDIO--FILE--ID :TYPE STRING :DOCUMENTATION
"A valid file identifier for the audio file")
(CAPTION :INITARG :CAPTION :INITFORM NIL :ACCESSOR TG-CAPTION :TYPE
STRING :DOCUMENTATION "Caption, 0-1024 characters")
(PARSE--MODE :INITARG :PARSE--MODE :INITFORM NIL :ACCESSOR
TG-PARSE--MODE :TYPE STRING :DOCUMENTATION
"Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.")
(REPLY--MARKUP :INITARG :REPLY--MARKUP :INITFORM NIL :ACCESSOR
TG-REPLY--MARKUP :TYPE *INLINE-KEYBOARD-MARKUP :DOCUMENTATION
"Inline keyboard attached to the message")
(INPUT--MESSAGE--CONTENT :INITARG :INPUT--MESSAGE--CONTENT :INITFORM
NIL :ACCESSOR TG-INPUT--MESSAGE--CONTENT :TYPE
*INPUT-MESSAGE-CONTENT :DOCUMENTATION
"Content of the message to be sent instead of the audio"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inlinequeryresultcachedaudio
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."))
(DEFUN *INPUT-MESSAGE-CONTENT (BOT)
"https://core.telegram.org/bots/api#inputmessagecontent
This object represents the content of a message to be sent as a result of an inline query. Telegram clients currently support the following 4 types:"
(LET ((OPTIONS (LIST)))
(MAKE-REQUEST BOT "InputMessageContent" OPTIONS)))
(DEFCLASS *INPUT-TEXT-MESSAGE-CONTENT NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InputTextMessageContent")
(MESSAGE--TEXT :INITARG :MESSAGE--TEXT :ACCESSOR TG-MESSAGE--TEXT
:TYPE STRING :DOCUMENTATION
"Text of the message to be sent, 1-4096 characters")
(PARSE--MODE :INITARG :PARSE--MODE :INITFORM NIL :ACCESSOR
TG-PARSE--MODE :TYPE STRING :DOCUMENTATION
"Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message.")
(DISABLE--WEB--PAGE--PREVIEW :INITARG :DISABLE--WEB--PAGE--PREVIEW
:INITFORM NIL :ACCESSOR TG-DISABLE--WEB--PAGE--PREVIEW :TYPE
BOOLEAN :DOCUMENTATION
"Disables link previews for links in the sent message"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inputtextmessagecontent
Represents the content of a text message to be sent as the result of an inline query."))
(DEFCLASS *INPUT-LOCATION-MESSAGE-CONTENT NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InputLocationMessageContent")
(LATITUDE :INITARG :LATITUDE :ACCESSOR TG-LATITUDE :TYPE *FLOAT
:DOCUMENTATION "Latitude of the location in degrees")
(LONGITUDE :INITARG :LONGITUDE :ACCESSOR TG-LONGITUDE :TYPE *FLOAT
:DOCUMENTATION "Longitude of the location in degrees")
(LIVE--PERIOD :INITARG :LIVE--PERIOD :INITFORM NIL :ACCESSOR
TG-LIVE--PERIOD :TYPE INTEGER :DOCUMENTATION
"Period in seconds for which the location can be updated, should be between 60 and 86400."))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inputlocationmessagecontent
Represents the content of a location message to be sent as the result of an inline query."))
(DEFCLASS *INPUT-VENUE-MESSAGE-CONTENT NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InputVenueMessageContent")
(LATITUDE :INITARG :LATITUDE :ACCESSOR TG-LATITUDE :TYPE *FLOAT
:DOCUMENTATION "Latitude of the venue in degrees")
(LONGITUDE :INITARG :LONGITUDE :ACCESSOR TG-LONGITUDE :TYPE *FLOAT
:DOCUMENTATION "Longitude of the venue in degrees")
(TITLE :INITARG :TITLE :ACCESSOR TG-TITLE :TYPE STRING
:DOCUMENTATION "Name of the venue")
(ADDRESS :INITARG :ADDRESS :ACCESSOR TG-ADDRESS :TYPE STRING
:DOCUMENTATION "Address of the venue")
(FOURSQUARE--ID :INITARG :FOURSQUARE--ID :INITFORM NIL :ACCESSOR
TG-FOURSQUARE--ID :TYPE STRING :DOCUMENTATION
"Foursquare identifier of the venue, if known")
(FOURSQUARE--TYPE :INITARG :FOURSQUARE--TYPE :INITFORM NIL :ACCESSOR
TG-FOURSQUARE--TYPE :TYPE STRING :DOCUMENTATION
"Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inputvenuemessagecontent
Represents the content of a venue message to be sent as the result of an inline query."))
(DEFCLASS *INPUT-CONTACT-MESSAGE-CONTENT NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"InputContactMessageContent")
(PHONE--NUMBER :INITARG :PHONE--NUMBER :ACCESSOR TG-PHONE--NUMBER
:TYPE STRING :DOCUMENTATION "Contact's phone number")
(FIRST--NAME :INITARG :FIRST--NAME :ACCESSOR TG-FIRST--NAME :TYPE
STRING :DOCUMENTATION "Contact's first name")
(LAST--NAME :INITARG :LAST--NAME :INITFORM NIL :ACCESSOR
TG-LAST--NAME :TYPE STRING :DOCUMENTATION "Contact's last name")
(VCARD :INITARG :VCARD :INITFORM NIL :ACCESSOR TG-VCARD :TYPE STRING
:DOCUMENTATION
"Additional data about the contact in the form of a vCard, 0-2048 bytes"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#inputcontactmessagecontent
Represents the content of a contact message to be sent as the result of an inline query."))
(DEFCLASS *CHOSEN-INLINE-RESULT NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"ChosenInlineResult")
(RESULT--ID :INITARG :RESULT--ID :ACCESSOR TG-RESULT--ID :TYPE
STRING :DOCUMENTATION
"The unique identifier for the result that was chosen")
(FROM :INITARG :FROM :ACCESSOR TG-FROM :TYPE *USER :DOCUMENTATION
"The user that chose the result")
(LOCATION :INITARG :LOCATION :INITFORM NIL :ACCESSOR TG-LOCATION
:TYPE *LOCATION :DOCUMENTATION
"Sender location, only for bots that require user location")
(INLINE--MESSAGE--ID :INITARG :INLINE--MESSAGE--ID :INITFORM NIL
:ACCESSOR TG-INLINE--MESSAGE--ID :TYPE STRING :DOCUMENTATION
"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.")
(QUERY :INITARG :QUERY :ACCESSOR TG-QUERY :TYPE STRING
:DOCUMENTATION "The query that was used to obtain the result"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#choseninlineresult
Represents a result of an inline query that was chosen by the user and sent to their chat partner."))
;----Telegram Passport----
(DEFCLASS *PASSPORT-DATA NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "PassportData")
(DATA :INITARG :DATA :ACCESSOR TG-DATA :TYPE
(ARRAY *ENCRYPTED-PASSPORT-ELEMENT) :DOCUMENTATION
"Array with information about documents and other Telegram Passport elements that was shared with the bot")
(CREDENTIALS :INITARG :CREDENTIALS :ACCESSOR TG-CREDENTIALS :TYPE
*ENCRYPTED-CREDENTIALS :DOCUMENTATION
"Encrypted credentials required to decrypt the data"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#passportdata
Contains information about Telegram Passport data shared with the bot by the user."))
(DEFCLASS *PASSPORT-FILE NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "PassportFile")
(FILE--ID :INITARG :FILE--ID :ACCESSOR TG-FILE--ID :TYPE STRING
:DOCUMENTATION "Identifier for this file")
(FILE--SIZE :INITARG :FILE--SIZE :ACCESSOR TG-FILE--SIZE :TYPE
INTEGER :DOCUMENTATION "File size")
(FILE--DATE :INITARG :FILE--DATE :ACCESSOR TG-FILE--DATE :TYPE
INTEGER :DOCUMENTATION "Unix time when the file was uploaded"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#passportfile
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."))
(DEFCLASS *ENCRYPTED-PASSPORT-ELEMENT NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"EncryptedPassportElement")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"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”.")
(DATA :INITARG :DATA :INITFORM NIL :ACCESSOR TG-DATA :TYPE STRING
:DOCUMENTATION
"Base64-encoded encrypted Telegram Passport element data provided by the user, available for “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport” and “address” types. Can be decrypted and verified using the accompanying EncryptedCredentials.")
(PHONE--NUMBER :INITARG :PHONE--NUMBER :INITFORM NIL :ACCESSOR
TG-PHONE--NUMBER :TYPE STRING :DOCUMENTATION
"User's verified phone number, available only for “phone_number” type")
(EMAIL :INITARG :EMAIL :INITFORM NIL :ACCESSOR TG-EMAIL :TYPE STRING
:DOCUMENTATION
"User's verified email address, available only for “email” type")
(FILES :INITARG :FILES :INITFORM NIL :ACCESSOR TG-FILES :TYPE
(ARRAY *PASSPORT-FILE) :DOCUMENTATION
"Array of encrypted files with documents provided by the user, available for “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying EncryptedCredentials.")
(FRONT--SIDE :INITARG :FRONT--SIDE :INITFORM NIL :ACCESSOR
TG-FRONT--SIDE :TYPE *PASSPORT-FILE :DOCUMENTATION
"Encrypted file with the front side of the document, provided by the user. Available for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials.")
(REVERSE--SIDE :INITARG :REVERSE--SIDE :INITFORM NIL :ACCESSOR
TG-REVERSE--SIDE :TYPE *PASSPORT-FILE :DOCUMENTATION
"Encrypted file with the reverse side of the document, provided by the user. Available for “driver_license” and “identity_card”. The file can be decrypted and verified using the accompanying EncryptedCredentials.")
(SELFIE :INITARG :SELFIE :INITFORM NIL :ACCESSOR TG-SELFIE :TYPE
*PASSPORT-FILE :DOCUMENTATION
"Encrypted file with the selfie of the user holding a document, provided by the user; available for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials.")
(TRANSLATION :INITARG :TRANSLATION :INITFORM NIL :ACCESSOR
TG-TRANSLATION :TYPE (ARRAY *PASSPORT-FILE) :DOCUMENTATION
"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.")
(HASH :INITARG :HASH :ACCESSOR TG-HASH :TYPE STRING :DOCUMENTATION
"Base64-encoded element hash for using in PassportElementErrorUnspecified"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#encryptedpassportelement
Contains information about documents or other Telegram Passport elements shared with the bot by the user."))
(DEFCLASS *ENCRYPTED-CREDENTIALS NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"EncryptedCredentials")
(DATA :INITARG :DATA :ACCESSOR TG-DATA :TYPE STRING :DOCUMENTATION
"Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication")
(HASH :INITARG :HASH :ACCESSOR TG-HASH :TYPE STRING :DOCUMENTATION
"Base64-encoded data hash for data authentication")
(SECRET :INITARG :SECRET :ACCESSOR TG-SECRET :TYPE STRING
:DOCUMENTATION
"Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#encryptedcredentials
Contains data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes."))
(DEFUN SET-PASSPORT-DATA-ERRORS (BOT USER--ID ERRORS)
"https://core.telegram.org/bots/api#setpassportdataerrors
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."
(CHECK-TYPE USER--ID INTEGER)
(CHECK-TYPE ERRORS (ARRAY *PASSPORT-ELEMENT-ERROR))
(LET ((OPTIONS (LIST (CONS :USER_ID USER--ID) (CONS :ERRORS ERRORS))))
(MAKE-REQUEST BOT "setPassportDataErrors" OPTIONS)))
(DEFUN *PASSPORT-ELEMENT-ERROR (BOT)
"https://core.telegram.org/bots/api#passportelementerror
This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user. It should be one of:"
(LET ((OPTIONS (LIST)))
(MAKE-REQUEST BOT "PassportElementError" OPTIONS)))
(DEFCLASS *PASSPORT-ELEMENT-ERROR-DATA-FIELD NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"PassportElementErrorDataField")
(SOURCE :INITARG :SOURCE :ACCESSOR TG-SOURCE :TYPE STRING
:DOCUMENTATION "Error source, must be data")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"The section of the user's Telegram Passport which has the error, one of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”")
(FIELD--NAME :INITARG :FIELD--NAME :ACCESSOR TG-FIELD--NAME :TYPE
STRING :DOCUMENTATION "Name of the data field which has the error")
(DATA--HASH :INITARG :DATA--HASH :ACCESSOR TG-DATA--HASH :TYPE
STRING :DOCUMENTATION "Base64-encoded data hash")
(MESSAGE :INITARG :MESSAGE :ACCESSOR TG-MESSAGE :TYPE STRING
:DOCUMENTATION "Error message"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#passportelementerrordatafield
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."))
(DEFCLASS *PASSPORT-ELEMENT-ERROR-FRONT-SIDE NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"PassportElementErrorFrontSide")
(SOURCE :INITARG :SOURCE :ACCESSOR TG-SOURCE :TYPE STRING
:DOCUMENTATION "Error source, must be front_side")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”")
(FILE--HASH :INITARG :FILE--HASH :ACCESSOR TG-FILE--HASH :TYPE
STRING :DOCUMENTATION
"Base64-encoded hash of the file with the front side of the document")
(MESSAGE :INITARG :MESSAGE :ACCESSOR TG-MESSAGE :TYPE STRING
:DOCUMENTATION "Error message"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#passportelementerrorfrontside
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."))
(DEFCLASS *PASSPORT-ELEMENT-ERROR-REVERSE-SIDE NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"PassportElementErrorReverseSide")
(SOURCE :INITARG :SOURCE :ACCESSOR TG-SOURCE :TYPE STRING
:DOCUMENTATION "Error source, must be reverse_side")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"The section of the user's Telegram Passport which has the issue, one of “driver_license”, “identity_card”")
(FILE--HASH :INITARG :FILE--HASH :ACCESSOR TG-FILE--HASH :TYPE
STRING :DOCUMENTATION
"Base64-encoded hash of the file with the reverse side of the document")
(MESSAGE :INITARG :MESSAGE :ACCESSOR TG-MESSAGE :TYPE STRING
:DOCUMENTATION "Error message"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#passportelementerrorreverseside
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."))
(DEFCLASS *PASSPORT-ELEMENT-ERROR-SELFIE NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"PassportElementErrorSelfie")
(SOURCE :INITARG :SOURCE :ACCESSOR TG-SOURCE :TYPE STRING
:DOCUMENTATION "Error source, must be selfie")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”")
(FILE--HASH :INITARG :FILE--HASH :ACCESSOR TG-FILE--HASH :TYPE
STRING :DOCUMENTATION
"Base64-encoded hash of the file with the selfie")
(MESSAGE :INITARG :MESSAGE :ACCESSOR TG-MESSAGE :TYPE STRING
:DOCUMENTATION "Error message"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#passportelementerrorselfie
Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes."))
(DEFCLASS *PASSPORT-ELEMENT-ERROR-FILE NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"PassportElementErrorFile")
(SOURCE :INITARG :SOURCE :ACCESSOR TG-SOURCE :TYPE STRING
:DOCUMENTATION "Error source, must be file")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"The section of the user's Telegram Passport which has the issue, one of “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”")
(FILE--HASH :INITARG :FILE--HASH :ACCESSOR TG-FILE--HASH :TYPE
STRING :DOCUMENTATION "Base64-encoded file hash")
(MESSAGE :INITARG :MESSAGE :ACCESSOR TG-MESSAGE :TYPE STRING
:DOCUMENTATION "Error message"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#passportelementerrorfile
Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes."))
(DEFCLASS *PASSPORT-ELEMENT-ERROR-FILES NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"PassportElementErrorFiles")
(SOURCE :INITARG :SOURCE :ACCESSOR TG-SOURCE :TYPE STRING
:DOCUMENTATION "Error source, must be files")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"The section of the user's Telegram Passport which has the issue, one of “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”")
(FILE--HASHES :INITARG :FILE--HASHES :ACCESSOR TG-FILE--HASHES :TYPE
(ARRAY STRING) :DOCUMENTATION "List of base64-encoded file hashes")
(MESSAGE :INITARG :MESSAGE :ACCESSOR TG-MESSAGE :TYPE STRING
:DOCUMENTATION "Error message"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#passportelementerrorfiles
Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes."))
(DEFCLASS *PASSPORT-ELEMENT-ERROR-TRANSLATION-FILE NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"PassportElementErrorTranslationFile")
(SOURCE :INITARG :SOURCE :ACCESSOR TG-SOURCE :TYPE STRING
:DOCUMENTATION "Error source, must be translation_file")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"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”")
(FILE--HASH :INITARG :FILE--HASH :ACCESSOR TG-FILE--HASH :TYPE
STRING :DOCUMENTATION "Base64-encoded file hash")
(MESSAGE :INITARG :MESSAGE :ACCESSOR TG-MESSAGE :TYPE STRING
:DOCUMENTATION "Error message"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#passportelementerrortranslationfile
Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes."))
(DEFCLASS *PASSPORT-ELEMENT-ERROR-TRANSLATION-FILES NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"PassportElementErrorTranslationFiles")
(SOURCE :INITARG :SOURCE :ACCESSOR TG-SOURCE :TYPE STRING
:DOCUMENTATION "Error source, must be translation_files")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"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”")
(FILE--HASHES :INITARG :FILE--HASHES :ACCESSOR TG-FILE--HASHES :TYPE
(ARRAY STRING) :DOCUMENTATION "List of base64-encoded file hashes")
(MESSAGE :INITARG :MESSAGE :ACCESSOR TG-MESSAGE :TYPE STRING
:DOCUMENTATION "Error message"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#passportelementerrortranslationfiles
Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation change."))
(DEFCLASS *PASSPORT-ELEMENT-ERROR-UNSPECIFIED NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"PassportElementErrorUnspecified")
(SOURCE :INITARG :SOURCE :ACCESSOR TG-SOURCE :TYPE STRING
:DOCUMENTATION "Error source, must be unspecified")
(TYPE :INITARG :TYPE :ACCESSOR TG-TYPE :TYPE STRING :DOCUMENTATION
"Type of element of the user's Telegram Passport which has the issue")
(ELEMENT--HASH :INITARG :ELEMENT--HASH :ACCESSOR TG-ELEMENT--HASH
:TYPE STRING :DOCUMENTATION "Base64-encoded element hash")
(MESSAGE :INITARG :MESSAGE :ACCESSOR TG-MESSAGE :TYPE STRING
:DOCUMENTATION "Error message"))
(:DOCUMENTATION
"https://core.telegram.org/bots/api#passportelementerrorunspecified
Represents an issue in an unspecified place. The error is considered resolved when new data is added."))
;----Games----
(DEFUN SEND-GAME
(BOT CHAT--ID GAME--SHORT--NAME
&KEY DISABLE--NOTIFICATION REPLY--TO--MESSAGE--ID REPLY--MARKUP)
"https://core.telegram.org/bots/api#sendgame
Use this method to send a game. On success, the sent Message is returned."
(CHECK-TYPE CHAT--ID INTEGER)
(CHECK-TYPE GAME--SHORT--NAME STRING)
(LET ((OPTIONS
(LIST (CONS :CHAT_ID CHAT--ID)
(CONS :GAME_SHORT_NAME GAME--SHORT--NAME))))
(WHEN DISABLE--NOTIFICATION
(NCONC OPTIONS
(LIST (CONS :DISABLE_NOTIFICATION DISABLE--NOTIFICATION))))
(WHEN REPLY--TO--MESSAGE--ID
(NCONC OPTIONS
(LIST (CONS :REPLY_TO_MESSAGE_ID REPLY--TO--MESSAGE--ID))))
(WHEN REPLY--MARKUP
(NCONC OPTIONS (LIST (CONS :REPLY_MARKUP REPLY--MARKUP))))
(MAKE-REQUEST BOT "sendGame" OPTIONS :RETURN-TYPE '*MESSAGE)))
(DEFCLASS *GAME NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM "Game")
(TITLE :INITARG :TITLE :ACCESSOR TG-TITLE :TYPE STRING
:DOCUMENTATION "Title of the game")
(DESCRIPTION :INITARG :DESCRIPTION :ACCESSOR TG-DESCRIPTION :TYPE
STRING :DOCUMENTATION "Description of the game")
(PHOTO :INITARG :PHOTO :ACCESSOR TG-PHOTO :TYPE (ARRAY *PHOTO-SIZE)
:DOCUMENTATION
"Photo that will be displayed in the game message in chats.")
(TEXT :INITARG :TEXT :INITFORM NIL :ACCESSOR TG-TEXT :TYPE STRING
:DOCUMENTATION
"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.")
(TEXT--ENTITIES :INITARG :TEXT--ENTITIES :INITFORM NIL :ACCESSOR
TG-TEXT--ENTITIES :TYPE (ARRAY *MESSAGE-ENTITY) :DOCUMENTATION
"Special entities that appear in text, such as usernames, URLs, bot commands, etc.")
(ANIMATION :INITARG :ANIMATION :INITFORM NIL :ACCESSOR TG-ANIMATION
:TYPE *ANIMATION :DOCUMENTATION
"Animation that will be displayed in the game message in chats. Upload via BotFather"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#game
This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers."))
(DEFUN SET-GAME-SCORE
(BOT USER--ID SCORE
&KEY FORCE DISABLE--EDIT--MESSAGE CHAT--ID MESSAGE--ID
INLINE--MESSAGE--ID)
"https://core.telegram.org/bots/api#setgamescore
Use this method to set the score of the specified user in a game. On success, if the message was sent by the bot, returns the edited Message, otherwise returns True. Returns an error, if the new score is not greater than the user's current score in the chat and force is False."
(CHECK-TYPE USER--ID INTEGER)
(CHECK-TYPE SCORE INTEGER)
(LET ((OPTIONS (LIST (CONS :USER_ID USER--ID) (CONS :SCORE SCORE))))
(WHEN FORCE (NCONC OPTIONS (LIST (CONS :FORCE FORCE))))
(WHEN DISABLE--EDIT--MESSAGE
(NCONC OPTIONS
(LIST (CONS :DISABLE_EDIT_MESSAGE DISABLE--EDIT--MESSAGE))))
(WHEN CHAT--ID (NCONC OPTIONS (LIST (CONS :CHAT_ID CHAT--ID))))
(WHEN MESSAGE--ID (NCONC OPTIONS (LIST (CONS :MESSAGE_ID MESSAGE--ID))))
(WHEN INLINE--MESSAGE--ID
(NCONC OPTIONS (LIST (CONS :INLINE_MESSAGE_ID INLINE--MESSAGE--ID))))
(MAKE-REQUEST BOT "setGameScore" OPTIONS :RETURN-TYPE '*MESSAGE)))
(DEFUN GET-GAME-HIGH-SCORES
(BOT USER--ID &KEY CHAT--ID MESSAGE--ID INLINE--MESSAGE--ID)
"https://core.telegram.org/bots/api#getgamehighscores
Use this method to get data for high score tables. Will return the score of the specified user and several of his neighbors in a game. On success, returns an Array of GameHighScore objects."
(CHECK-TYPE USER--ID INTEGER)
(LET ((OPTIONS (LIST (CONS :USER_ID USER--ID))))
(WHEN CHAT--ID (NCONC OPTIONS (LIST (CONS :CHAT_ID CHAT--ID))))
(WHEN MESSAGE--ID (NCONC OPTIONS (LIST (CONS :MESSAGE_ID MESSAGE--ID))))
(WHEN INLINE--MESSAGE--ID
(NCONC OPTIONS (LIST (CONS :INLINE_MESSAGE_ID INLINE--MESSAGE--ID))))
(MAKE-REQUEST BOT "getGameHighScores" OPTIONS)))
(DEFCLASS *GAME-HIGH-SCORE NIL
((TYPE-NAME :ALLOCATION :CLASS :READER NAME :INITFORM
"GameHighScore")
(POSITION :INITARG :POSITION :ACCESSOR TG-POSITION :TYPE INTEGER
:DOCUMENTATION
"Position in high score table for the game")
(USER :INITARG :USER :ACCESSOR TG-USER :TYPE *USER :DOCUMENTATION
"User")
(SCORE :INITARG :SCORE :ACCESSOR TG-SCORE :TYPE INTEGER
:DOCUMENTATION "Score"))
(:DOCUMENTATION "https://core.telegram.org/bots/api#gamehighscore
This object represents one row of the high scores table for a game."))