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
- Callback
Query - Chat
- Chat
Invite Link - Chat
Location - Chat
Member - Chat
Member Updated - Chat
Permissions - Chat
Photo - Contact
- Dice
- Document
- File
- Force
Reply - Inline
Keyboard Button - Inline
Keyboard Markup - Input
Media - Keyboard
Button - Keyboard
Button Poll Type - Location
- Login
Url - Mask
Position - Message
- Message
Auto Delete Timer Changed - Message
Entity - Message
Id - Photo
Size - Poll
- Poll
Answer - Poll
Option - Proximity
Alert Triggered - Reply
Keyboard Markup - Reply
Keyboard Remove - Response
Parameters - Sticker
- Sticker
Set - Update
- User
- User
Profile Photos - Venue
- Video
- Video
Note - Voice
- Voice
Chat Ended - Voice
Chat Participants Invited - Voice
Chat Scheduled - Voice
Chat Started