Liking cljdoc? Tell your friends :D

telegrambot-lib.edit.core

Telegram Bot API Updating/Modifying Messages - function implementations.

Most functions are multi-arity with the following options:

  • Send all parameters in a 'content' map.
  • Send only the required parameters as simple values.
  • Send the required paraemters as simple values and then 'optional' parameters in a map.
Telegram Bot API Updating/Modifying Messages - function implementations.
- <https://core.telegram.org/bots/api#updating-messages>

Most functions are multi-arity with the following options:
- Send all parameters in a 'content' map.
- Send only the required parameters as simple values.
- Send the required paraemters as simple values and then 'optional' parameters in a map.
raw docstring

behaviorclj

Map for extending the core TBot record with functions.

Map for extending the core TBot record with functions.
sourceraw docstring

delete-messageclj

(delete-message this content)
(delete-message this chat_id message_id)

Use this method to delete a message, including service messages. Returns True on success.

Required

  • this ; a bot instance
  • chat_id ; target chat or username (@user)
  • message_id ; id of message to delete
Use this method to delete a message, including service messages.
Returns True on success.

Required
- this ; a bot instance
- chat_id ; target chat or username (@user)
- message_id ; id of message to delete
sourceraw docstring

edit-message-captionclj

(edit-message-caption this content)
(edit-message-caption this chat_id message_id caption)
(edit-message-caption this chat_id message_id caption & optional)

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.

Required

  • this ; a bot instance
  • chat_id ; target chat or username (@user)
  • message_id ; id of message to edit
  • caption ; new caption of message

Optional

  • parse_mode ; entity parsing in message
  • caption_entities ; list of MessageEntity - can use instead of parse_mode
  • reply_markup ; inline keyboard markup
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.

Required
- this ; a bot instance
- chat_id ; target chat or username (@user)
- message_id ; id of message to edit
- caption ; new caption of message

Optional
- parse_mode ; entity parsing in message
- caption_entities ; list of MessageEntity - can use instead of parse_mode
- reply_markup ; inline keyboard markup
sourceraw docstring

edit-message-caption-inlineclj

(edit-message-caption-inline this content)
(edit-message-caption-inline this inline_message_id caption)
(edit-message-caption-inline this inline_message_id caption & optional)

Use this method to edit captions of inline messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.

Required

  • this ; a bot instance
  • inline_message_id ; id of the inline message
  • caption ; new caption of message

Optional

  • parse_mode ; entity parsing in message
  • reply_markup ; inline keyboard markup
Use this method to edit captions of inline messages.
On success, if edited message is sent by the bot, the edited Message is
returned, otherwise True is returned.

Required
- this ; a bot instance
- inline_message_id ; id of the inline message
- caption ; new caption of message

Optional
- parse_mode ; entity parsing in message
- reply_markup ; inline keyboard markup
sourceraw docstring

edit-message-mediaclj

(edit-message-media this content)
(edit-message-media this chat_id message_id media)
(edit-message-media this chat_id message_id media & optional)

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.

Required

  • this ; a bot instance
  • chat_id ; target chat or username (@user)
  • message_id ; id of message to edit
  • media ; json object for new media content

Optional

  • reply_markup ; inline keyboard markup
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.

Required
- this ; a bot instance
- chat_id ; target chat or username (@user)
- message_id ; id of message to edit
- media ; json object for new media content

Optional
- reply_markup ; inline keyboard markup
sourceraw docstring

edit-message-media-inlineclj

(edit-message-media-inline this content)
(edit-message-media-inline this inline_message_id media)
(edit-message-media-inline this inline_message_id media & optional)

Use this method to edit inline 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.

Required

  • this ; a bot instance
  • inline_message_id ; id of the inline message
  • media ; json object for new media content

Optional

  • reply_markup ; inline keyboard markup
Use this method to edit inline 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.

Required
- this ; a bot instance
- inline_message_id ; id of the inline message
- media ; json object for new media content

Optional
- reply_markup ; inline keyboard markup
sourceraw docstring

edit-message-reply-markupclj

(edit-message-reply-markup this content)
(edit-message-reply-markup this chat_id message_id reply_markup)

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.

Required

  • this ; a bot instance
  • chat_id ; target chat or username (@user)
  • message_id ; id of message to edit
  • reply_markup ; inline keyboard markup
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.

Required
- this ; a bot instance
- chat_id ; target chat or username (@user)
- message_id ; id of message to edit
- reply_markup ; inline keyboard markup
sourceraw docstring

edit-message-reply-markup-inlineclj

(edit-message-reply-markup-inline this content)
(edit-message-reply-markup-inline this inline_message_id reply_markup)

Use this method to edit only the reply markup of inline messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.

Required

  • this ; a bot instance
  • inline_message_id ; id of the inline message
  • reply_markup ; inline keyboard markup
Use this method to edit only the reply markup of inline messages.
On success, if edited message is sent by the bot, the edited Message is
returned, otherwise True is returned.

Required
- this ; a bot instance
- inline_message_id ; id of the inline message
- reply_markup ; inline keyboard markup
sourceraw docstring

edit-message-textclj

(edit-message-text this content)
(edit-message-text this chat_id message_id text)
(edit-message-text this chat_id message_id text & optional)

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.

Required

  • this ; a bot instance
  • chat_id ; target chat or username (@user)
  • message_id ; id of message to edit
  • text ; new text of message

Optional

  • parse_mode ; entity parsing in message
  • entities ; list of MessageEntity - can use instead of parse_mode
  • disable_web_page_preview ; disable link previews
  • reply_markup ; inline keyboard markup
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.

Required
- this ; a bot instance
- chat_id ; target chat or username (@user)
- message_id ; id of message to edit
- text ; new text of message

Optional
- parse_mode ; entity parsing in message
- entities ; list of MessageEntity - can use instead of parse_mode
- disable_web_page_preview ; disable link previews
- reply_markup ; inline keyboard markup
sourceraw docstring

edit-message-text-inlineclj

(edit-message-text-inline this content)
(edit-message-text-inline this inline_message_id text)
(edit-message-text-inline this inline_message_id text & optional)

Use this method to edit inline text and game messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.

Required

  • this ; a bot instance
  • inline_message_id ; id of the inline message
  • text ; new text of message

Optional

  • parse_mode ; entity parsing in message
  • disable_web_page_preview ; disable link previews
  • reply_markup ; inline keyboard markup
Use this method to edit inline text and game messages.
On success, if edited message is sent by the bot, the edited Message is
returned, otherwise True is returned.

Required
- this ; a bot instance
- inline_message_id ; id of the inline message
- text ; new text of message

Optional
- parse_mode ; entity parsing in message
- disable_web_page_preview ; disable link previews
- reply_markup ; inline keyboard markup
sourceraw docstring

stop-pollclj

(stop-poll this content)
(stop-poll this chat_id message_id)
(stop-poll this chat_id message_id & optional)

Use this method to stop a poll which was sent by the bot. On success, the stopped Poll with the final results is returned.

Required

  • this ; a bot instance
  • chat_id ; target chat or username (@user)
  • message_id ; id of original message with the poll

Optional

  • reply_markup ; inline keyboard markup
Use this method to stop a poll which was sent by the bot.
On success, the stopped Poll with the final results is returned.

Required
- this ; a bot instance
- chat_id ; target chat or username (@user)
- message_id ; id of original message with the poll

Optional
- reply_markup ; inline keyboard markup
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close