Module telegram_api_rs::objects[][src]

Expand description

This module contains all available types to use the Bot API
All types have functions to create them from_json

let user = User::from_json(json_data);

or to turn them back into JSON-format

let json_data = user.to_json();

as well as creating empty objects (having all fields filled with default data)

let user = User::empty()

All types can also be displayed and cloned.

Structs

Animation
Audio
BotCommand
CallbackQuery
Chat
ChatInviteLink
ChatLocation
ChatMember
ChatMemberUpdated
ChatPermissions
ChatPhoto
Contact
Dice
Document
File
ForceReply
InlineKeyboardButton
InlineKeyboardMarkup
InputMedia
KeyboardButton
KeyboardButtonPollType
Location
LoginUrl
MaskPosition
Message
MessageAutoDeleteTimerChanged
MessageEntity
MessageId
PhotoSize
Poll
PollAnswer
PollOption
ProximityAlertTriggered
ReplyKeyboardMarkup
ReplyKeyboardRemove
ResponseParameters
Sticker
StickerSet
Update
User
UserProfilePhotos
Venue
Video
VideoNote
Voice
VoiceChatEnded
VoiceChatParticipantsInvited
VoiceChatScheduled
VoiceChatStarted

Enums

MessageEntityType