[][src]Module telebot::objects

The complete list of telegram types, copied from: https://core.telegram.org/bots/api#available-types

on each struct getter, setter and send function will be implemented

Modules

input_message_content

Structs

Animation

This object represents an animation file to be displayed in the message containing a game

Audio

This object represents an audio file to be treated as music by the Telegram clients.

CallbackGame

A placeholder, currently holds no information. Use BotFather to set up your game.

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.

Chat

This object represents a chat.

ChatMember

This object contains information about one member of the chat.

ChosenInlineResult
Contact

This object represents a phone contact.

Document

This object represents a general file (as opposed to photos, voice messages and audio files).

File

This object represents a file ready to be downloaded. The file can be downloaded via the link https://api.telegram.org/file/bot/<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.

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 bot‘s message and tapped ’Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode.

Game
GameHighScore
InlineKeyboardButton

This object represents one button of an inline keyboard. You must use exactly one of the optional fields.

InlineKeyboardMarkup

This object represents an inline keyboard that appears right next to the message it belongs to.

InlineQuery

This object represents an incoming inline query. When the user sends an empty query, youur bot could return some default or trending results.

InlineQueryResultArticle
InlineQueryResultAudio
InlineQueryResultCachedAudio
InlineQueryResultCachedDocument
InlineQueryResultCachedGif
InlineQueryResultCachedMpeg4Gif
InlineQueryResultCachedPhoto
InlineQueryResultCachedSticker
InlineQueryResultCachedVideo
InlineQueryResultCachedVoice
InlineQueryResultContact
InlineQueryResultDocument
InlineQueryResultGame
InlineQueryResultGif
InlineQueryResultLocation
InlineQueryResultMpeg4Gif
InlineQueryResultPhoto
InlineQueryResultVenue
InlineQueryResultVideo
InlineQueryResultVoice
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.

Link
Location

This object represents a point on the map.

Message

This object represents a message.

MessageEntity

This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.

Messages
PhotoSize

This object represents one size of a photo or a file / sticker thumbnail.

ReplyKeyboardMarkup

This object represents a custom keyboard with reply options (see Introduction to bots for details and examples).

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).

ResponseParameter

Contains information about why a request was unsuccessfull.

Sticker

This object represents a sticker.

Update
Updates
User

This object represents a Telegram user or bot.

UserProfilePhotos

This object represent a user's profile pictures.

Venue

This object represents a venue.

Video

This object represents a video file.

Voice

This object represents a voice note.

Enums

EditResponse

Type Definitions

Boolean

These objects are redefinitions of basic types. telebot-derive will scope every object in answer, so we need to redefine them here.

Integer
NotImplemented
Vector