1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
type TelegramString=String;
type TelegramInteger=i32;
type TelegramFloat=f32;
type TelegramBoolean=bool;
type TelegramTrue=bool;

/// This object represents a Telegram user or bot.
pub struct User{
	/// Unique identifier for this user or bot
	pub _id: TelegramInteger,
	/// True, if this user is a bot
	pub _is_bot: TelegramBoolean,
	/// User‘s or bot’s first name
	pub _first_name: TelegramString,
	/// Optional. User‘s or bot’s last name
	pub _last_name: Option<TelegramString>,
	/// Optional. User‘s or bot’s username
	pub _username: Option<TelegramString>,
	/// Optional. IETF language tag of the user's language
	pub _language_code: Option<TelegramString>
}

/// This object represents a chat.
pub struct Chat{
	/// Unique identifier for this chat. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
	pub _id: TelegramInteger,
	/// Type of chat, can be either “private”, “group”, “supergroup” or “channel”
	pub _type: TelegramString,
	/// Optional. Title, for supergroups, channels and group chats
	pub _title: Option<TelegramString>,
	/// Optional. Username, for private chats, supergroups and channels if available
	pub _username: Option<TelegramString>,
	/// Optional. First name of the other party in a private chat
	pub _first_name: Option<TelegramString>,
	/// Optional. Last name of the other party in a private chat
	pub _last_name: Option<TelegramString>,
	/// Optional. True if a group has ‘All Members Are Admins’ enabled.
	pub _all_members_are_administrators: Option<TelegramBoolean>,
	/// Optional. Chat photo. Returned only in getChat.
	pub _photo: Option<ChatPhoto>,
	/// Optional. Description, for supergroups and channel chats. Returned only in getChat.
	pub _description: Option<TelegramString>,
	/// Optional. Chat invite link, for supergroups and channel chats. Returned only in getChat.
	pub _invite_link: Option<TelegramString>,
	/// Optional. Pinned message, for supergroups. Returned only in getChat.
	pub _pinned_message: Option<Box<Message>>
}

/// This object represents a chat photo.
pub struct ChatPhoto{
	/// Unique file identifier of small (160x160) chat photo. This file_id can be used only for photo download.
	pub _small_file_id: TelegramString,
	/// Unique file identifier of big (640x640) chat photo. This file_id can be used only for photo download.	
	pub _big_file_id: TelegramString
}

/// This object represents a message.
pub struct Message{
	/// Unique message identifier inside this chat
	pub _message_id: TelegramInteger,
	/// Optional. Sender, empty for messages sent to channels
	pub _from: Option<User>,
	/// Date the message was sent in Unix time
	pub _date: TelegramInteger,
	/// Conversation the message belongs to
	pub _chat: Chat,
	/// Optional. For forwarded messages, sender of the original message
	pub _forward_from: Option<User>,
	/// Optional. For messages forwarded from channels, information about the original channel
	pub _forward_from_chat: Option<Chat>,
	/// Optional. For messages forwarded from channels, identifier of the original message in the channel
	pub _forward_from_message_id: Option<TelegramInteger>,
	/// Optional. For messages forwarded from channels, signature of the post author if present
	pub _forward_signature: Option<TelegramString>,
	/// Optional. For forwarded messages, date the original message was sent in Unix time
	pub _forward_date: Option<TelegramInteger>,
	/// Optional. For replies, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.
	pub _reply_to_message: Option<Box<Message>>,
	/// Optional. Date the message was last edited in Unix time
	pub _edit_date: Option<TelegramInteger>,
	/// Optional. Signature of the post author for messages in channels
	pub _author_signature: Option<TelegramString>,
	/// Optional. For text messages, the actual UTF-8 text of the message, 0-4096 characters.
	pub _text: Option<TelegramString>,
	/// Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text
	pub _entities: Option<Vec<MessageEntity>>,
	/// Optional. Message is an audio file, information about the file
	pub _audio: Option<Audio>,
	/// Optional. Message is a general file, information about the file
	pub _document: Option<Document>,
	/// Optional. Message is a game, information about the game.
	pub _game: Option<Game>,
	/// Optional. Message is a photo, available sizes of the photo
	pub _photo: Option<Vec<PhotoSize>>,
	/// Optional. Message is a sticker, information about the sticker
	pub _sticker: Option<Sticker>,
	/// Optional. Message is a video, information about the video
	pub _video: Option<Video>,
	/// Optional. Message is a voice message, information about the file
	pub _voice: Option<Voice>,
	/// Optional. Message is a video note, information about the video message
	pub _video_note: Option<VideoNote>,
	/// Optional. Caption for the document, photo or video, 0-200 characters
	pub _caption: Option<String>,
	/// Optional. Message is a shared contact, information about the contact
	pub _contact: Option<Contact>,
	/// Optional. Message is a shared location, information about the location
	pub _location: Option<Location>,
	/// Optional. Message is a venue, information about the venue
	pub _venue: Option<Venue>,
	/// Optional. New members that were added to the group or supergroup and information about them (the bot itself may be one of these members)
	pub _new_chat_members: Option<Vec<User>>,
	/// Optional. A member was removed from the group, information about them (this member may be the bot itself)
	pub _left_chat_member: Option<User>,
	/// Optional. A chat title was changed to this value
	pub _new_chat_title: Option<String>,
	/// Optional. A chat photo was change to this value
	pub _new_chat_photo: Option<Vec<PhotoSize>>,
	/// Optional. Service message: the chat photo was deleted
	pub _delete_chat_photo: Option<TelegramTrue>,
	/// Optional. Service message: the group has been created
	pub _group_chat_created: Option<TelegramTrue>,
	/// Optional. Service message: the supergroup has been created. This field can‘t be received in a message coming through updates, because bot can’t be a member of a supergroup when it is created. It can only be found in reply_to_message if someone replies to a very first message in a directly created supergroup.
	pub _supergroup_chat_created: Option<TelegramTrue>,
	/// Optional. Service message: the channel has been created. This field can‘t be received in a message coming through updates, because bot can’t be a member of a channel when it is created. It can only be found in reply_to_message if someone replies to a very first message in a channel.
	pub _channel_chat_created: Option<TelegramTrue>,
	/// Optional. The group has been migrated to a supergroup with the specified identifier. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
	pub _migrate_to_chat_id: Option<TelegramInteger>,
	/// Optional. The supergroup has been migrated from a group with the specified identifier. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
	pub _migrate_from_chat_id: Option<TelegramInteger>,
	/// Optional. Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it is itself a reply.
	pub _pinned_message: Option<Box<Message>>,
	/// Optional. Message is an invoice for a payment, information about the invoice. More about payments »
	pub _invoice: Option<Invoice>,
	/// Optional. Message is a service message about a successful payment, information about the payment. More about payments 
	pub _successful_payment: Option<SuccessfulPayment>
}

/// This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.
pub struct MessageEntity{
	/// Type of the entity. Can be mention (@username), hashtag, bot_command, url, email, bold (bold text), italic (italic text), code (monowidth string), pre (monowidth block), text_link (for clickable text URLs), text_mention (for users without usernames)
	pub _type: TelegramString,
	/// Offset in UTF-16 code units to the start of the entity
	pub _offset: TelegramInteger,
	/// Length of the entity in UTF-16 code units
	pub _length: TelegramInteger,
	/// Optional. For “text_link” only, url that will be opened after user taps on the text
	pub _url: Option<TelegramString>,
	/// Optional. For “text_mention” only, the mentioned user
	pub _user: Option<User>
}

/// This object represents an audio file to be treated as music by the Telegram clients.
pub struct Audio{
	/// Unique identifier for this file
	pub _file_id: TelegramString,
	/// Duration of the audio in seconds as defined by sender
	pub _duration: TelegramInteger,
	/// Optional. Performer of the audio as defined by sender or by audio tags
	pub _performer: Option<TelegramString>,
	/// Optional. Title of the audio as defined by sender or by audio tags	
	pub _title: Option<TelegramString>,
	/// Optional. MIME type of the file as defined by sender
	pub _mime_type: Option<TelegramString>,
	/// Optional. File size
	pub _file_size: Option<TelegramInteger>
}

/// This object represents a general file (as opposed to photos, voice messages and audio files).
pub struct Document{
	/// Unique file identifier
	pub _file_id: TelegramString,
	/// Optional. Document thumbnail as defined by sender
	pub _thumb: Option<PhotoSize>,
	/// Optional. Original filename as defined by sender
	pub _file_name: Option<TelegramString>,
	/// Optional. MIME type of the file as defined by sender	
	pub _mime_type: Option<TelegramString>,
	/// Optional. File size
	pub _file_size: Option<TelegramInteger>
}

/// This object represents one size of a photo or a file / sticker thumbnail.
pub struct PhotoSize{
	/// Unique identifier for this file
	pub _file_id: TelegramString,
	/// Photo width
	pub _width: TelegramInteger,
	/// Photo height
	pub _height: TelegramInteger,
	/// Optional. File size
	pub _file_size: Option<TelegramInteger>
}

/// This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers.
pub struct Game{
	/// Title of the game
	pub _title: TelegramString,
	/// Description of the game
	pub _description: TelegramString,
	/// Photo that will be displayed in the game message in chats.
	pub _photo: Vec<PhotoSize>,
	/// Optional. Brief description of the game or high scores included in the game message. Can be automatically edited to include current high scores for the game when the bot calls setGameScore, or manually edited using editMessageText. 0-4096 characters.
	pub _text: Option<TelegramString>,
	/// Optional. Special entities that appear in text, such as usernames, URLs, bot commands, etc.
	pub _text_entities: Option<Vec<MessageEntity>>,
	/// Optional. Animation that will be displayed in the game message in chats. Upload via BotFather
	pub _animation: Option<Animation>
}

/// You can provide an animation for your game so that it looks stylish in chats (check out Lumberjack for an example). This object represents an animation file to be displayed in the message containing a game.
pub struct Animation{
	/// Unique file identifier
	pub _file_id: TelegramString,
	/// Optional. Animation thumbnail as defined by sender
	pub _thumb: Option<PhotoSize>,
	/// Optional. Original animation filename as defined by sender
	pub _file_name: Option<TelegramString>,
	/// Optional. MIME type of the file as defined by sender
	pub _mime_type: Option<TelegramString>,
	/// Optional. File size
	pub _file_size: Option<TelegramInteger>
}

/// This object represents a sticker.
pub struct Sticker{
	/// Unique identifier for this file
	pub _file_id: TelegramString,
	/// Sticker width
	pub _width: TelegramInteger,
	/// Sticker height
	pub _height: TelegramInteger,
	/// Optional. Sticker thumbnail in the .webp or .jpg format
	pub _thumb: Option<PhotoSize>,
	/// Optional. Emoji associated with the sticker
	pub _emoji: Option<TelegramString>,
	/// Optional. Name of the sticker set to which the sticker belongs
	pub _set_name: Option<TelegramString>,
	/// Optional. For mask stickers, the position where the mask should be placed
	pub _mask_position: Option<MaskPosition>,
	/// Optional. File size
	pub _file_size: Option<TelegramInteger>
}

/// This object describes the position on faces where a mask should be placed by default.
pub struct MaskPosition{
	/// The part of the face relative to which the mask should be placed. One of “forehead”, “eyes”, “mouth”, or “chin”.
	pub _point: TelegramString,
	/// Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position.
	pub _x_shift: TelegramFloat,
	/// Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0 will place the mask just below the default mask position.
	pub _y_shift: TelegramFloat,
	/// Mask scaling coefficient. For example, 2.0 means double size.
	pub _scale: TelegramFloat	
}

/// This object represents a video file.
pub struct Video{
	/// Unique identifier for this file
	pub _file_id: TelegramString,
	/// Video width as defined by sender
	pub _width: TelegramInteger,
	/// Video height as defined by sender
	pub _height: TelegramInteger,
	/// Duration of the video in seconds as defined by sender
	pub _duration: TelegramInteger,
	/// Optional. Video thumbnail
	pub _thumb: Option<PhotoSize>,
	/// Optional. Mime type of a file as defined by sender
	pub _mime_type: Option<TelegramString>,
	/// Optional. File size
	pub _file_size: Option<TelegramInteger>
}

/// This object represents a voice note.
pub struct Voice{
	/// Unique identifier for this file
	pub _file_id: TelegramString,
	/// Duration of the audio in seconds as defined by sender
	pub _duration: TelegramInteger,
	/// Optional. MIME type of the file as defined by sender
	pub _mime_type: Option<TelegramString>,
	/// Optional. File size
	pub _file_size: Option<TelegramInteger>
}

pub struct VideoNote{
	/// Unique identifier for this file
	pub _file_id: TelegramString,
	/// Video width and height as defined by sender
	pub _length:	TelegramInteger,
	/// Duration of the video in seconds as defined by sender
	pub _duration: TelegramInteger,
	/// Optional. Video thumbnail
	pub _thumb: Option<PhotoSize>,
	/// Optional. File size
	pub _file_size: Option<TelegramInteger>
}

/// This object represents a phone contact.
pub struct Contact{
	/// Contact's phone number
	pub _phone_number: TelegramString,
	/// Contact's first name
	pub _first_name: TelegramString,
	/// Optional. Contact's last name
	pub _last_name: Option<TelegramString>,
	/// Optional. Contact's user identifier in Telegram
	pub _user_id: Option<TelegramInteger>
}

/// This object represents a point on the map.
pub struct Location{
	/// Longitude as defined by sender
	pub _longitude: TelegramFloat,
	/// Latitude as defined by sender
	pub _latitude: TelegramFloat
}

/// This object represents a venue.
pub struct Venue{
	/// Venue location
	pub _location: Location,
	/// Name of the venue
	pub _title: TelegramString,
	/// Address of the venue
	pub _address: TelegramString,
	/// Optional. Foursquare identifier of the venue
	pub _foursquare_id: Option<TelegramString>
}

/// This object contains basic information about an invoice.
pub struct Invoice{
	/// Product name
	pub _title: TelegramString,
	/// Product description
	pub _description: TelegramString,
	/// Unique bot deep-linking parameter that can be used to generate this invoice
	pub _start_parameter: TelegramString,
	/// Three-letter ISO 4217 currency code
	pub _currency: TelegramString,
	/// Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
	pub _total_amount: TelegramInteger
}

/// This object contains basic information about a successful payment.
pub struct SuccessfulPayment{
	/// Three-letter ISO 4217 currency code
	pub _currency: TelegramString,
	/// Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
	pub _total_amount: TelegramInteger,
	/// Bot specified invoice payload
	pub _invoice_payload: TelegramString,
	/// Optional. Identifier of the shipping option chosen by the user
	pub _shipping_option_id: Option<TelegramString>,
	/// Optional. Order info provided by the user
	pub _order_info: Option<OrderInfo>,
	/// Telegram payment identifier
	pub _telegram_payment_charge_id: TelegramString,
	/// Provider payment identifier
	pub _provider_payment_charge_id: TelegramString
}

/// This object represents information about an order.
pub struct OrderInfo{
	/// Optional. User name
	pub _name: Option<TelegramString>,
	/// Optional. User's phone number
	pub _phone_number: Option<TelegramString>,
	/// Optional. User email
	pub _email: Option<TelegramString>,
	/// Optional. User shipping address
	pub _shipping_address: Option<ShippingAddress>
}

/// This object represents a shipping address.
pub struct ShippingAddress{
	/// ISO 3166-1 alpha-2 country code
	pub _country_code: TelegramString,
	/// State, if applicable
	pub _state: TelegramString,
	/// City
	pub _city: TelegramString,
	/// First line for the address
	pub _street_line1: TelegramString,
	/// Second line for the address
	pub _street_line2: TelegramString,
	/// Address post code
	pub _post_code: TelegramString
}

/// This object represent a user's profile pictures.
pub struct UserProfilePhotos{
	/// Total number of profile pictures the target user has
	pub _total_count: TelegramInteger,
	/// Array of Array of PhotoSize	Requested profile pictures (in up to 4 sizes each)
	pub _photos: Vec<Vec<PhotoSize>>
}

/// This object represents a custom keyboard with reply options (see Introduction to bots for details and examples).
pub struct ReplyKeyboardMarkup{
	/// Array of button rows, each represented by an Array of KeyboardButton objects
	pub _keyboard: Vec<Vec<KeyboardButton>>,
	/// Boolean	Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
	pub _resize_keyboard: Option<TelegramBoolean>,
	/// Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat – the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
	pub _one_time_keyboard: Option<TelegramBoolean>,
	/// Optional. Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
	/// Example: A user requests to change the bot‘s language, bot replies to the request with a keyboard to select the new language. Other users in the group don’t see the keyboard.
	pub _selective: Option<TelegramBoolean>
}

/// 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.
pub struct KeyboardButton{
	/// Text of the button. If none of the optional fields are used, it will be sent to the bot as a message when the button is pressed
	pub _text: TelegramString,
	/// Optional. If True, the user's phone number will be sent as a contact when the button is pressed. Available in private chats only
	pub _request_contact: Option<TelegramBoolean>,
	/// Optional. If True, the user's current location will be sent when the button is pressed. Available in private chats only
	pub _request_location: Option<TelegramBoolean>
}

/// 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).
pub struct ReplyKeyboardRemove{
	/// Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
	pub _remove_keyboard: TelegramTrue,
	/// Optional. Use this parameter if you want to remove the keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
	/// Example: A user votes in a poll, bot returns confirmation message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with poll options to users who haven't voted yet.
	pub _selective: Option<TelegramBoolean>
}

/// This object represents an inline keyboard that appears right next to the message it belongs to.
pub struct InlineKeyboardMarkup{
	/// Array of button rows, each represented by an Array of InlineKeyboardButton objects
	pub _inline_keyboard: Vec<Vec<InlineKeyboardButton>>
}

/// This object represents one button of an inline keyboard. You must use exactly one of the optional fields.
pub struct InlineKeyboardButton{
	/// Label text on the button
	pub _text:TelegramString,
	/// Optional. HTTP url to be opened when button is pressed
	pub _url: Option<TelegramString>,
	/// Optional. Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes
	pub _callback_data: Option<TelegramString>,
	/// Optional. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot‘s username and the specified inline query in the input field. Can be empty, in which case just the bot’s username will be inserted.
	/// Note: This offers an easy way for users to start using your bot in inline mode when they are currently in a private chat with it. Especially useful when combined with switch_pm… actions – in this case the user will be automatically returned to the chat they switched from, skipping the chat selection screen.
	pub _switch_inline_query: Option<TelegramString>,
	/// Optional. If set, pressing the button will insert the bot‘s username and the specified inline query in the current chat's input field. Can be empty, in which case only the bot’s username will be inserted.
	/// This offers a quick way for the user to open your bot in inline mode in the same chat – good for selecting something from multiple options.
	pub _switch_inline_query_current_chat: Option<TelegramString>,
	/// Optional. Description of the game that will be launched when the user presses the button.
	/// NOTE: This type of button must always be the first button in the first row.
	pub _callback_game: Option<CallbackGame>,
	/// Optional. Specify True, to send a Pay button.
	/// NOTE: This type of button must always be the first button in the first row.
	pub _pay: Option<TelegramBoolean>
}

/// A placeholder, currently holds no information. Use BotFather to set up your game.
pub struct CallbackGame{
}

/// 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.
pub struct CallbackQuery{
	/// Unique identifier for this query
	pub _id: TelegramString,
	/// Sender
	pub _from: User,
	/// Optional. Message with the callback button that originated the query. Note that message content and message date will not be available if the message is too old
	pub _message: Option<Message>,
	/// Optional. Identifier of the message sent via the bot in inline mode, that originated the query.
	pub _inline_message_id: Option<TelegramString>,
	/// Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
	pub _chat_instance: TelegramString,
	/// Optional. Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field.
	pub _data: Option<TelegramString>,
	/// Optional. Short name of a Game to be returned, serves as the unique identifier for the game
	pub _game_short_name: Option<TelegramString>
}

/// 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.
pub struct ForceReply{
	/// Shows reply interface to the user, as if they manually selected the bot‘s message and tapped ’Reply'
	pub force_reply: TelegramTrue,
	/// Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
	pub selective: Option<TelegramBoolean>
}

/// This object contains information about one member of a chat.
pub struct ChatMember{
	/// Information about the user
	pub _user: User,
	/// The member's status in the chat. Can be “creator”, “administrator”, “member”, “restricted”, “left” or “kicked”
	pub _status: TelegramString,
	/// Optional. Restictred and kicked only. Date when restrictions will be lifted for this user, unix time
	pub _until_date: Option<TelegramInteger>,
	/// Optional. Administrators only. True, if the bot is allowed to edit administrator privileges of that user
	pub _can_be_edited: Option<TelegramBoolean>,
	/// Optional. Administrators only. True, if the administrator can change the chat title, photo and other settings
	pub _can_change_info: Option<TelegramBoolean>,
	/// Optional. Administrators only. True, if the administrator can post in the channel, channels only
	pub _can_post_messages: Option<TelegramBoolean>,
	/// Optional. Administrators only. True, if the administrator can edit messages of other users, channels only
	pub _can_edit_messages: Option<TelegramBoolean>,
	/// Optional. Administrators only. True, if the administrator can delete messages of other users
	pub _can_delete_messages: Option<TelegramBoolean>,
	/// Optional. Administrators only. True, if the administrator can invite new users to the chat
	pub _can_invite_users: Option<TelegramBoolean>,
	/// Optional. Administrators only. True, if the administrator can restrict, ban or unban chat members
	pub _can_restrict_members: Option<TelegramBoolean>,
	/// Optional. Administrators only. True, if the administrator can pin messages, supergroups only
	pub _can_pin_messages: Option<TelegramBoolean>,
	/// Optional. Administrators only. True, if the administrator can add new administrators with a subset of his own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user)
	pub _can_promote_members: Option<TelegramBoolean>,
	/// Optional. Restricted only. True, if the user can send text messages, contacts, locations and venues
	pub _can_send_messages: Option<TelegramBoolean>,
	/// Optional. Restricted only. True, if the user can send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages
	pub _can_send_media_messages: Option<TelegramBoolean>,
	/// Optional. Restricted only. True, if the user can send animations, games, stickers and use inline bots, implies can_send_media_messages
	pub _can_send_other_messages: Option<TelegramBoolean>,
	/// Optional. Restricted only. True, if user may add web page previews to his messages, implies can_send_media_messages
	pub _can_add_web_page_previews: Option<TelegramBoolean>
}

/// Contains information about why a request was unsuccessfull.
pub struct ResponseParameters{
	/// Optional. The group has been migrated to a supergroup with the specified identifier. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
	pub _migrate_to_chat_id: Option<TelegramInteger>,
	/// Optional. In case of exceeding flood control, the number of seconds left to wait before the request can be repeated
	pub _retry_after: Option<TelegramInteger>
}