Telebot  4.7.0
Library for Telegram bot API
Classes | Typedefs | Enumerations
telebot-types.h File Reference

This file contains types used to create telegram bot. More...

#include <stdbool.h>

Go to the source code of this file.

Classes

struct  telebot_user
 This object represents a Telegram user or bot. More...
 
struct  telebot_chat
 This object represents a chat. More...
 
struct  telebot_message
 This object represents a message. More...
 
struct  telebot_message_entity
 This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc. More...
 
struct  telebot_photo
 This object represents one size of a photo or a file / sticker thumbnail. More...
 
struct  telebot_audio
 This object represents an audio file to be treated as music by the Telegram clients. More...
 
struct  telebot_document
 This object represents a general file (as opposed to photos, voice messages and audio files). More...
 
struct  telebot_video
 This object represents a video file. More...
 
struct  telebot_animation
 This object represents a video file. More...
 
struct  telebot_voice
 This object represents a voice note. More...
 
struct  telebot_video_note
 This object represents a video message (available in Telegram apps as of v.4.0). More...
 
struct  telebot_contact
 This object represents a phone contact. More...
 
struct  telebot_location
 This object represents a point on the map. More...
 
struct  telebot_venue
 This object represents a venue. More...
 
struct  telebot_poll_option
 This object contains information about one answer option in a poll. More...
 
struct  telebot_poll_answer
 This object represents an answer of a user in a non-anonymous poll. More...
 
struct  telebot_poll
 This object contains information about a poll. More...
 
struct  telebot_dice
 This object represents a dice with random value from 1 to 6. More...
 
struct  telebot_user_profile_photos
 This object represent a user's profile pictures. More...
 
struct  telebot_file
 This object represents a file ready to be downloaded. More...
 
struct  telebot_keyboard_button_poll_type
 This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed. More...
 
struct  telebot_keyboard_button
 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 request_contact, request_location, and request_poll are mutually exclusive. More...
 
struct  telebot_reply_keyboard_markup
 This object represents a custom keyboard with reply options. More...
 
struct  telebot_reply_keyboard_remove
 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 telebot_reply_keyboard_markup_t). More...
 
struct  telebot_callback_query
 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. More...
 
struct  telebot_force_reply
 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. More...
 
struct  telebot_chat_photo
 This object represents a chat photo. More...
 
struct  telebot_chat_member
 This object contains information about one member of a chat. More...
 
struct  telebot_chat_permissions
 Describes actions that a non-administrator user is allowed to take in a chat. More...
 
struct  telebot_bot_command
 This object represents a bot command. More...
 
struct  telebot_response_paramters
 Contains information about why a request was unsuccessful. More...
 
struct  telebot_update
 This object represents an incoming update. More...
 
struct  telebot_webhook_info
 Thi object represetns information about the current status of a webhook. More...
 

Typedefs

typedef enum telebot_update_type telebot_update_type_e
 Enumerations of telegram update types.
 
typedef struct telebot_user telebot_user_t
 This object represents a Telegram user or bot.
 
typedef struct telebot_chat telebot_chat_t
 This object represents a chat.
 
typedef struct telebot_message telebot_message_t
 This object represents a message.
 
typedef struct telebot_message_entity telebot_message_entity_t
 This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.
 
typedef struct telebot_photo telebot_photo_t
 This object represents one size of a photo or a file / sticker thumbnail.
 
typedef struct telebot_audio telebot_audio_t
 This object represents an audio file to be treated as music by the Telegram clients.
 
typedef struct telebot_document telebot_document_t
 This object represents a general file (as opposed to photos, voice messages and audio files).
 
typedef struct telebot_video telebot_video_t
 This object represents a video file.
 
typedef struct telebot_animation telebot_animation_t
 This object represents a video file.
 
typedef struct telebot_voice telebot_voice_t
 This object represents a voice note.
 
typedef struct telebot_video_note telebot_video_note_t
 This object represents a video message (available in Telegram apps as of v.4.0).
 
typedef struct telebot_contact telebot_contact_t
 This object represents a phone contact.
 
typedef struct telebot_location telebot_location_t
 This object represents a point on the map.
 
typedef struct telebot_venue telebot_venue_t
 This object represents a venue.
 
typedef struct telebot_poll_option telebot_poll_option_t
 This object contains information about one answer option in a poll.
 
typedef struct telebot_poll_answer telebot_poll_answer_t
 This object represents an answer of a user in a non-anonymous poll.
 
typedef struct telebot_poll telebot_poll_t
 This object contains information about a poll.
 
typedef struct telebot_dice telebot_dice_t
 This object represents a dice with random value from 1 to 6.
 
typedef struct telebot_user_profile_photos telebot_user_profile_photos_t
 This object represent a user's profile pictures.
 
typedef struct telebot_file telebot_file_t
 This object represents a file ready to be downloaded. More...
 
typedef struct telebot_keyboard_button_poll_type telebot_keyboard_button_poll_type_t
 This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.
 
typedef struct telebot_keyboard_button telebot_keyboard_button_t
 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 request_contact, request_location, and request_poll are mutually exclusive.
 
typedef struct telebot_reply_keyboard_markup telebot_reply_keyboard_markup_t
 This object represents a custom keyboard with reply options.
 
typedef struct telebot_reply_keyboard_remove telebot_reply_keyboard_remove_t
 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 telebot_reply_keyboard_markup_t).
 
typedef struct telebot_callback_query telebot_callback_query_t
 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.
 
typedef struct telebot_force_reply telebot_force_reply_t
 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.
 
typedef struct telebot_chat_photo telebot_chat_photo_t
 This object represents a chat photo.
 
typedef struct telebot_chat_member telebot_chat_member_t
 This object contains information about one member of a chat.
 
typedef struct telebot_chat_permissions telebot_chat_permissions_t
 Describes actions that a non-administrator user is allowed to take in a chat.
 
typedef struct telebot_bot_command telebot_bot_command_t
 This object represents a bot command.
 
typedef struct telebot_response_paramters telebot_response_paramters_t
 Contains information about why a request was unsuccessful.
 
typedef struct telebot_update telebot_update_t
 This object represents an incoming update.
 
typedef struct telebot_webhook_info telebot_webhook_info_t
 Thi object represetns information about the current status of a webhook.
 
typedef struct telebot_handler_s * telebot_handler_t
 This is opaque object to represent a telebot handler.
 

Enumerations

enum  telebot_update_type {
  TELEBOT_UPDATE_TYPE_MESSAGE = 0, TELEBOT_UPDATE_TYPE_EDITED_MESSAGE, TELEBOT_UPDATE_TYPE_CHANNEL_POST, TELEBOT_UPDATE_TYPE_EDITED_CHANNEL_POST,
  TELEBOT_UPDATE_TYPE_INLINE_QUERY, TELEBOT_UPDATE_TYPE_CHOSEN_INLINE_RESULT, TELEBOT_UPDATE_TYPE_CALLBACK_QUERY, TELEBOT_UPDATE_TYPE_SHIPPING_QUERY,
  TELEBOT_UPDATE_TYPE_PRE_CHECKOUT_QUERY, TELEBOT_UPDATE_TYPE_POLL, TELEBOT_UPDATE_TYPE_POLL_ANSWER, TELEBOT_UPDATE_TYPE_MAX
}
 Enumerations of telegram update types. More...
 

Detailed Description

This file contains types used to create telegram bot.

Author
Elmurod Talipov
Date
2020-04-19