Objetos

Nossa biblioteca implementa todos os objetos da API do telegram, com os mesmos nomes, e a princípio com os mesmos membros. Alguns tipos podem possuir um ponteiro next apontando para o próximo objeto.

Objetos exclusivos

Objetos que existem somente na biblioteca, e não possuem representação na API do Telegram.

Bot

Objeto que vai ser utilizado para referenciar seu bot nas funções da API.

char *token

Seu token do Telegram.

User *user

Objeto retornado da chamada à get_me()

Referência completa

User
long int id
bool is_bot
char *first_name
char *last_name
char *username
char *language_code
struct _user *next
Bot
char *token
User *user
ChatPhoto
char *small_file_id
char *big_file_id
Chat
long int id
char *type
char *title
char *username
char *first_name
char *last_name
bool all_members_are_administrators
ChatPhoto *photo
char *description
struct _message *pinned_message
char *sticker_set_name
bool can_set_sticker_set
MessageEntity
char *type
long int offset
long int length
char *url
User *user
struct _message_entity *next
Audio
char *file_id
long int duration
char *performer
char *title
char *mime_type
long int file_size
PhotoSize
char *file_id
int width
int height
long int file_size
struct _photo_size *next
Game
char *file_id
PhotoSize *thumb
char *file_name
char *mime_type
long int file_size
char *title
char *description
char *text
Animation *animation
Sticker
char *file_id
int width
int height
PhotoSize *thumb
char *emoji
long int file_size
Video
char *file_id
int width
int height
long int duration
PhotoSize *thumb
char *mime_type
long int file_size
VideoNote
char *file_id
long length
long duration
PhotoSize *thumb
long file_size
Voice
char *file_id
long int duration
char *mime_type
long int file_size
Contact
char *phone_number
char *first_name
char *last_name
long int user_id
Location
float latitude
float longitude
Venue
Location *location
char *title
char *address
char *foursquare_id
Invoice
char *title
char *description
char *start_parameter
char *currency
long total_amount
ShippingAddress
char *country_code
char *state
char *city
char *street_line1
char *street_line2
char *post_code
OrderInfo
char *name
char *phone_number
char *email
ShippingAddress *shipping_address
SuccessfulPayment
char *currency
long total_amount
char *invoice_payload
char *shipping_option_id
OrderInfo *order_info
char *telegram_payment_charge_id
char *provider_payment_charge_id
ShippingQuery
char *id
User *from
char *invoice_payload
ShippingAddress *shipping_address
PreCheckoutQuery
char *id
User *from
char *currency
long total_amount
char *invoice_payload
char *shipping_option_id
OrderInfo *order_info
Message
long int message_id
User *from
long int date
Chat *chat
User *forward_from
Chat *forward_from_chat
long int forward_from_message_id
char *forward_signature
long int forward_date
struct _message *reply_to_message
long int edit_date
char *media_group_id
char *author_signature
char *text
MessageEntity *caption_entities
Audio *audio
Document *document
Game *game
Sticker *sticker
Video *video
Voice *voice
VideoNote *video_note
char *caption
Contact *contact
Location *location
Venue *venue
User *new_chat_members
User *left_chat_member
char *new_chat_title
bool delete_chat_photo
bool group_chat_created
bool supergroup_chat_created
bool channel_chat_created
long int migrate_to_chat_id
long int migrate_from_chat_id
struct _message *pinned_message
Invoice *invoice
SuccessfulPayment *successful_payment
char *connected_website
InlineQuery
char *id
User *from
Location *location
char *query
char *offset
ChosenInlineResult
char *result_id
User *from
Location *location
char *inline_message_id
char *query
CallbackQuery
char *id
User *from
Message *message
char *inline_message_id
char *chat_instance
char *data
char *game_short_name
Framebot
long int update_id
Message *message
Message *edited_message
Message *channel_post
Message *edited_channel_post
InlineQuery *inline_query
ChosenInlineResult *chosen_inline_result
CallbackQuery *callback_query
ShippingQuery *shipping_query
PreCheckoutQuery *pre_checkout_query
struct _update *next
long int update_id
UPMessage *message
UPMessage *edited_message
UPMessage *channel_post
UPMessage *edited_channel_post
UPIResult *chosen_inline_result
UPPCQuery *pre_checkout_query
ChatMember
User *user
char *status
long int until_date
bool can_be_edited
bool can_change_info
bool can_post_messages
bool can_edit_messages
bool can_delete_messages
bool can_invite_users
bool can_restrict_members
bool can_pin_messages
bool can_promote_members
bool can_send_messages
bool can_send_media_messages
bool can_send_other_messages
bool can_add_web_page_previews
struct _chat_member *next
File
char *file_id
long file_size
char *file_path
UserProfilePhotos
long total_count
CallbackGame
long int user_id
long int score
bool force
bool disable_edit_message
long int chat_id
long int message_id
char *inline_message_id
KeyboardButton
char *text
bool request_contact
bool request_location
struct _keyboard_button *next
InlineKeyboardButton
char *text
char *url
char *callback_data
char *switch_nline_query
char *switch_inline_query_current_chat
CallbackGame *callback_game
bool pay
InlineKeyboardMarkup
int type
ReplyKeyboardMarkup
int type
bool resize_keyboard
bool one_time_keyboard
bool selective
ReplyKeyboardRemove
int type
bool remove_keyboard
bool selective
ForceReply
int type
bool force_reply
bool selective
Keyboard
int type
InlineKeyboardButton *inline_keyboard_markup
ReplyKeyboardMarkup *reply_keyboard_markup
ReplyKeyboardRemove *reply_keyboard_remove
ForceReply *_force_reply