Use this method to send a native poll
Use this method to send a native poll. On success, the sent Message is returned.
Body
Required
-
Poll question, 1-300 characters
-
A JSON-serialized list of answer options, 2-10 strings 1-100 characters each
-
True, if the poll needs to be anonymous, defaults to True
-
Poll type, “quiz” or “regular”, defaults to “regular”
-
True, if the poll allows multiple answers, ignored for polls in quiz mode, defaults to False
-
0-based identifier of the correct answer option, required for polls in quiz mode
-
Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters with at most 2 line feeds after entities parsing
-
Mode for parsing entities in the explanation. See formatting options for more details.
-
This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.
-
Amount of time in seconds the poll will be active after creation, 5-600. Can't be used together with close_date.
-
Point in time (Unix timestamp) when the poll will be automatically closed. Must be at least 5 and no more than 600 seconds in the future. Can't be used together with open_period.
-
Pass True, if the poll needs to be immediately closed. This can be useful for poll preview.
-
Sends the message silently. Users will receive a notification with no sound.
-
If the message is a reply, ID of the original message
-
Pass True, if the message should be sent even if the specified replied-to message is not found
curl \
-X POST https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/sendPoll \
-H "Content-Type: application/json" \
-d '{"chat_id":42,"question":"string","options":["string"],"is_anonymous":true,"type":"string","allows_multiple_answers":true,"correct_option_id":42,"explanation":"string","explanation_parse_mode":"string","explanation_entities":[{"type":"mention","offset":42,"length":42,"url":"string","user":{"id":42,"is_bot":true,"first_name":"string","last_name":"string","username":"string","language_code":"string","can_join_groups":true,"can_read_all_group_messages":true,"supports_inline_queries":true},"language":"string"}],"open_period":42,"close_date":42,"is_closed":true,"disable_notification":true,"reply_to_message_id":42,"allow_sending_without_reply":true,"reply_markup":{"":[[{}]]}}'
{
"chat_id": 42,
"question": "string",
"options": [
"string"
],
"is_anonymous": true,
"type": "string",
"allows_multiple_answers": true,
"correct_option_id": 42,
"explanation": "string",
"explanation_parse_mode": "string",
"explanation_entities": [
{
"type": "mention",
"offset": 42,
"length": 42,
"url": "string",
"user": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"language": "string"
}
],
"open_period": 42,
"close_date": 42,
"is_closed": true,
"disable_notification": true,
"reply_to_message_id": 42,
"allow_sending_without_reply": true,
"reply_markup": {
"": [
[
{}
]
]
}
}
{
"chat_id": 42,
"question": "string",
"options": [
"string"
],
"is_anonymous": true,
"type": "string",
"allows_multiple_answers": true,
"correct_option_id": 42,
"explanation": "string",
"explanation_parse_mode": "string",
"explanation_entities": [
{
"type": "mention",
"offset": 42,
"length": 42,
"url": "string",
"user": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"language": "string"
}
],
"open_period": 42,
"close_date": 42,
"is_closed": true,
"disable_notification": true,
"reply_to_message_id": 42,
"allow_sending_without_reply": true,
"reply_markup": {
"": [
[
{}
]
]
}
}
{
"ok": true,
"result": {
"message_id": 42,
"from": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"sender_chat": {
"id": 42,
"type": "private",
"title": "string",
"username": "string",
"first_name": "string",
"last_name": "string",
"photo": {
"small_file_id": "string",
"small_file_unique_id": "string",
"big_file_id": "string",
"big_file_unique_id": "string"
},
"bio": "string",
"description": "string",
"invite_link": "string",
"pinned_message": {},
"permissions": {
"can_send_messages": true,
"can_send_media_messages": true,
"can_send_polls": true,
"can_send_other_messages": true,
"can_add_web_page_previews": true,
"can_change_info": true,
"can_invite_users": true,
"can_pin_messages": true
},
"slow_mode_delay": 42,
"sticker_set_name": "string",
"can_set_sticker_set": true,
"linked_chat_id": 42,
"location": {
"location": {
"longitude": 42.0,
"latitude": 42.0,
"horizontal_accuracy": 42.0,
"live_period": 42,
"heading": 42,
"proximity_alert_radius": 42
},
"address": "string"
}
},
"date": 42,
"chat": {
"id": 42,
"type": "private",
"title": "string",
"username": "string",
"first_name": "string",
"last_name": "string",
"photo": {
"small_file_id": "string",
"small_file_unique_id": "string",
"big_file_id": "string",
"big_file_unique_id": "string"
},
"bio": "string",
"description": "string",
"invite_link": "string",
"pinned_message": {},
"permissions": {
"can_send_messages": true,
"can_send_media_messages": true,
"can_send_polls": true,
"can_send_other_messages": true,
"can_add_web_page_previews": true,
"can_change_info": true,
"can_invite_users": true,
"can_pin_messages": true
},
"slow_mode_delay": 42,
"sticker_set_name": "string",
"can_set_sticker_set": true,
"linked_chat_id": 42,
"location": {
"location": {
"longitude": 42.0,
"latitude": 42.0,
"horizontal_accuracy": 42.0,
"live_period": 42,
"heading": 42,
"proximity_alert_radius": 42
},
"address": "string"
}
},
"forward_from": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"forward_from_chat": {
"id": 42,
"type": "private",
"title": "string",
"username": "string",
"first_name": "string",
"last_name": "string",
"photo": {
"small_file_id": "string",
"small_file_unique_id": "string",
"big_file_id": "string",
"big_file_unique_id": "string"
},
"bio": "string",
"description": "string",
"invite_link": "string",
"pinned_message": {},
"permissions": {
"can_send_messages": true,
"can_send_media_messages": true,
"can_send_polls": true,
"can_send_other_messages": true,
"can_add_web_page_previews": true,
"can_change_info": true,
"can_invite_users": true,
"can_pin_messages": true
},
"slow_mode_delay": 42,
"sticker_set_name": "string",
"can_set_sticker_set": true,
"linked_chat_id": 42,
"location": {
"location": {
"longitude": 42.0,
"latitude": 42.0,
"horizontal_accuracy": 42.0,
"live_period": 42,
"heading": 42,
"proximity_alert_radius": 42
},
"address": "string"
}
},
"forward_from_message_id": 42,
"forward_signature": "string",
"forward_sender_name": "string",
"forward_date": 42,
"reply_to_message": {},
"via_bot": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"edit_date": 42,
"media_group_id": "string",
"author_signature": "string",
"text": "string",
"entities": [
{
"type": "mention",
"offset": 42,
"length": 42,
"url": "string",
"user": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"language": "string"
}
],
"animation": {
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"duration": 42,
"thumb": {
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"file_size": 42
},
"file_name": "string",
"mime_type": "string",
"file_size": 42
},
"audio": {
"file_id": "string",
"file_unique_id": "string",
"duration": 42,
"performer": "string",
"title": "string",
"file_name": "string",
"mime_type": "string",
"file_size": 42,
"thumb": {
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"file_size": 42
}
},
"document": {
"file_id": "string",
"file_unique_id": "string",
"thumb": {
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"file_size": 42
},
"file_name": "string",
"mime_type": "string",
"file_size": 42
},
"photo": [
{
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"file_size": 42
}
],
"sticker": {
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"is_animated": true,
"thumb": {
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"file_size": 42
},
"emoji": "string",
"set_name": "string",
"mask_position": {
"point": "forehead",
"x_shift": 42.0,
"y_shift": 42.0,
"scale": 42.0
},
"file_size": 42
},
"video": {
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"duration": 42,
"thumb": {
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"file_size": 42
},
"file_name": "string",
"mime_type": "string",
"file_size": 42
},
"video_note": {
"file_id": "string",
"file_unique_id": "string",
"length": 42,
"duration": 42,
"thumb": {
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"file_size": 42
},
"file_size": 42
},
"voice": {
"file_id": "string",
"file_unique_id": "string",
"duration": 42,
"mime_type": "string",
"file_size": 42
},
"caption": "string",
"caption_entities": [
{
"type": "mention",
"offset": 42,
"length": 42,
"url": "string",
"user": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"language": "string"
}
],
"contact": {
"phone_number": "string",
"first_name": "string",
"last_name": "string",
"user_id": 42,
"vcard": "string"
},
"dice": {
"emoji": "string",
"value": 42
},
"game": {
"title": "string",
"description": "string",
"photo": [
{
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"file_size": 42
}
],
"text": "string",
"text_entities": [
{
"type": "mention",
"offset": 42,
"length": 42,
"url": "string",
"user": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"language": "string"
}
],
"animation": {
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"duration": 42,
"thumb": {
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"file_size": 42
},
"file_name": "string",
"mime_type": "string",
"file_size": 42
}
},
"poll": {
"id": "string",
"question": "string",
"options": [
{
"text": "string",
"voter_count": 42
}
],
"total_voter_count": 42,
"is_closed": true,
"is_anonymous": true,
"type": "string",
"allows_multiple_answers": true,
"correct_option_id": 42,
"explanation": "string",
"explanation_entities": [
{
"type": "mention",
"offset": 42,
"length": 42,
"url": "string",
"user": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"language": "string"
}
],
"open_period": 42,
"close_date": 42
},
"venue": {
"location": {
"longitude": 42.0,
"latitude": 42.0,
"horizontal_accuracy": 42.0,
"live_period": 42,
"heading": 42,
"proximity_alert_radius": 42
},
"title": "string",
"address": "string",
"foursquare_id": "string",
"foursquare_type": "string",
"google_place_id": "string",
"google_place_type": "string"
},
"location": {
"longitude": 42.0,
"latitude": 42.0,
"horizontal_accuracy": 42.0,
"live_period": 42,
"heading": 42,
"proximity_alert_radius": 42
},
"new_chat_members": [
{
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
}
],
"left_chat_member": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"new_chat_title": "string",
"new_chat_photo": [
{
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"file_size": 42
}
],
"delete_chat_photo": true,
"group_chat_created": true,
"supergroup_chat_created": true,
"channel_chat_created": true,
"migrate_to_chat_id": 42,
"migrate_from_chat_id": 42,
"pinned_message": {},
"invoice": {
"title": "string",
"description": "string",
"start_parameter": "string",
"currency": "string",
"total_amount": 42
},
"successful_payment": {
"currency": "string",
"total_amount": 42,
"invoice_payload": "string",
"shipping_option_id": "string",
"order_info": {
"name": "string",
"phone_number": "string",
"email": "string",
"shipping_address": {
"country_code": "string",
"state": "string",
"city": "string",
"street_line1": "string",
"street_line2": "string",
"post_code": "string"
}
},
"telegram_payment_charge_id": "string",
"provider_payment_charge_id": "string"
},
"connected_website": "string",
"passport_data": {
"data": [
{
"type": "personal_details",
"data": "string",
"phone_number": "string",
"email": "string",
"files": [
{
"file_id": "string",
"file_unique_id": "string",
"file_size": 42,
"file_date": 42
}
],
"front_side": {
"file_id": "string",
"file_unique_id": "string",
"file_size": 42,
"file_date": 42
},
"reverse_side": {
"file_id": "string",
"file_unique_id": "string",
"file_size": 42,
"file_date": 42
},
"selfie": {
"file_id": "string",
"file_unique_id": "string",
"file_size": 42,
"file_date": 42
},
"translation": [
{
"file_id": "string",
"file_unique_id": "string",
"file_size": 42,
"file_date": 42
}
],
"hash": "string"
}
],
"credentials": {
"data": "string",
"hash": "string",
"secret": "string"
}
},
"proximity_alert_triggered": {
"traveler": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"watcher": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"distance": 42
},
"reply_markup": {
"": [
[
{}
]
]
}
}
}
{
"ok": true,
"result": {
"message_id": 42,
"from": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"sender_chat": {
"username": "string",
"id": 42,
"type": "private",
"title": "string",
"first_name": "string",
"last_name": "string",
"photo": {
"small_file_id": "string",
"small_file_unique_id": "string",
"big_file_id": "string",
"big_file_unique_id": "string"
},
"bio": "string",
"description": "string",
"invite_link": "string",
"pinned_message": {},
"permissions": {
"can_send_messages": true,
"can_send_media_messages": true,
"can_send_polls": true,
"can_send_other_messages": true,
"can_add_web_page_previews": true,
"can_change_info": true,
"can_invite_users": true,
"can_pin_messages": true
},
"location": {
"location": {
"longitude": 42.0,
"latitude": 42.0,
"horizontal_accuracy": 42.0,
"live_period": 42,
"heading": 42,
"proximity_alert_radius": 42
},
"address": "string"
},
"slow_mode_delay": 42,
"sticker_set_name": "string",
"can_set_sticker_set": true,
"linked_chat_id": 42
},
"date": 42,
"chat": {
"id": 42,
"type": "private",
"title": "string",
"username": "string",
"first_name": "string",
"last_name": "string",
"photo": {
"small_file_id": "string",
"small_file_unique_id": "string",
"big_file_id": "string",
"big_file_unique_id": "string"
},
"bio": "string",
"description": "string",
"invite_link": "string",
"pinned_message": {},
"permissions": {
"can_send_messages": true,
"can_send_media_messages": true,
"can_send_polls": true,
"can_send_other_messages": true,
"can_add_web_page_previews": true,
"can_change_info": true,
"can_invite_users": true,
"can_pin_messages": true
},
"slow_mode_delay": 42,
"sticker_set_name": "string",
"can_set_sticker_set": true,
"linked_chat_id": 42,
"location": {
"location": {
"longitude": 42.0,
"latitude": 42.0,
"horizontal_accuracy": 42.0,
"live_period": 42,
"heading": 42,
"proximity_alert_radius": 42
},
"address": "string"
}
},
"forward_from": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"forward_from_chat": {
"username": "string",
"id": 42,
"type": "private",
"title": "string",
"first_name": "string",
"last_name": "string",
"photo": {
"small_file_id": "string",
"small_file_unique_id": "string",
"big_file_id": "string",
"big_file_unique_id": "string"
},
"bio": "string",
"description": "string",
"invite_link": "string",
"pinned_message": {},
"permissions": {
"can_send_messages": true,
"can_send_media_messages": true,
"can_send_polls": true,
"can_send_other_messages": true,
"can_add_web_page_previews": true,
"can_change_info": true,
"can_invite_users": true,
"can_pin_messages": true
},
"slow_mode_delay": 42,
"sticker_set_name": "string",
"can_set_sticker_set": true,
"linked_chat_id": 42,
"location": {
"location": {
"longitude": 42.0,
"latitude": 42.0,
"horizontal_accuracy": 42.0,
"live_period": 42,
"heading": 42,
"proximity_alert_radius": 42
},
"address": "string"
}
},
"forward_from_message_id": 42,
"forward_signature": "string",
"forward_sender_name": "string",
"forward_date": 42,
"reply_to_message": {},
"via_bot": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"edit_date": 42,
"media_group_id": "string",
"author_signature": "string",
"text": "string",
"entities": [
{
"url": "string",
"type": "mention",
"offset": 42,
"length": 42,
"user": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"language": "string"
}
],
"animation": {
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"duration": 42,
"thumb": {
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"file_size": 42
},
"file_name": "string",
"mime_type": "string",
"file_size": 42
},
"audio": {
"file_id": "string",
"file_unique_id": "string",
"duration": 42,
"performer": "string",
"title": "string",
"file_name": "string",
"mime_type": "string",
"file_size": 42,
"thumb": {
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"file_size": 42
}
},
"document": {
"file_id": "string",
"file_unique_id": "string",
"thumb": {
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"file_size": 42
},
"file_name": "string",
"mime_type": "string",
"file_size": 42
},
"photo": [
{
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"file_size": 42
}
],
"sticker": {
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"is_animated": true,
"thumb": {
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"file_size": 42
},
"emoji": "string",
"set_name": "string",
"mask_position": {
"point": "forehead",
"x_shift": 42.0,
"y_shift": 42.0,
"scale": 42.0
},
"file_size": 42
},
"video": {
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"duration": 42,
"thumb": {
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"file_size": 42
},
"file_name": "string",
"mime_type": "string",
"file_size": 42
},
"video_note": {
"file_id": "string",
"file_unique_id": "string",
"length": 42,
"duration": 42,
"thumb": {
"width": 42,
"file_id": "string",
"file_unique_id": "string",
"height": 42,
"file_size": 42
},
"file_size": 42
},
"voice": {
"file_id": "string",
"file_unique_id": "string",
"duration": 42,
"mime_type": "string",
"file_size": 42
},
"caption": "string",
"caption_entities": [
{
"type": "mention",
"offset": 42,
"length": 42,
"url": "string",
"user": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"language": "string"
}
],
"contact": {
"phone_number": "string",
"first_name": "string",
"last_name": "string",
"user_id": 42,
"vcard": "string"
},
"dice": {
"emoji": "string",
"value": 42
},
"game": {
"title": "string",
"description": "string",
"photo": [
{
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"file_size": 42
}
],
"text": "string",
"text_entities": [
{
"type": "mention",
"offset": 42,
"length": 42,
"url": "string",
"user": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"language": "string"
}
],
"animation": {
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"duration": 42,
"thumb": {
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"file_size": 42
},
"file_name": "string",
"mime_type": "string",
"file_size": 42
}
},
"poll": {
"id": "string",
"question": "string",
"options": [
{
"text": "string",
"voter_count": 42
}
],
"total_voter_count": 42,
"is_closed": true,
"is_anonymous": true,
"type": "string",
"allows_multiple_answers": true,
"correct_option_id": 42,
"explanation": "string",
"explanation_entities": [
{
"type": "mention",
"offset": 42,
"length": 42,
"url": "string",
"user": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"language": "string"
}
],
"open_period": 42,
"close_date": 42
},
"venue": {
"location": {
"longitude": 42.0,
"latitude": 42.0,
"horizontal_accuracy": 42.0,
"live_period": 42,
"heading": 42,
"proximity_alert_radius": 42
},
"title": "string",
"address": "string",
"foursquare_id": "string",
"foursquare_type": "string",
"google_place_id": "string",
"google_place_type": "string"
},
"location": {
"longitude": 42.0,
"latitude": 42.0,
"horizontal_accuracy": 42.0,
"live_period": 42,
"heading": 42,
"proximity_alert_radius": 42
},
"new_chat_members": [
{
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
}
],
"left_chat_member": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"new_chat_title": "string",
"new_chat_photo": [
{
"file_id": "string",
"file_unique_id": "string",
"width": 42,
"height": 42,
"file_size": 42
}
],
"delete_chat_photo": true,
"group_chat_created": true,
"supergroup_chat_created": true,
"channel_chat_created": true,
"migrate_to_chat_id": 42,
"migrate_from_chat_id": 42,
"pinned_message": {},
"invoice": {
"description": "string",
"title": "string",
"start_parameter": "string",
"currency": "string",
"total_amount": 42
},
"successful_payment": {
"currency": "string",
"total_amount": 42,
"invoice_payload": "string",
"shipping_option_id": "string",
"order_info": {
"name": "string",
"phone_number": "string",
"email": "string",
"shipping_address": {
"country_code": "string",
"state": "string",
"city": "string",
"street_line1": "string",
"street_line2": "string",
"post_code": "string"
}
},
"telegram_payment_charge_id": "string",
"provider_payment_charge_id": "string"
},
"connected_website": "string",
"passport_data": {
"data": [
{
"type": "personal_details",
"data": "string",
"phone_number": "string",
"email": "string",
"files": [
{
"file_id": "string",
"file_unique_id": "string",
"file_size": 42,
"file_date": 42
}
],
"front_side": {
"file_id": "string",
"file_unique_id": "string",
"file_size": 42,
"file_date": 42
},
"reverse_side": {
"file_id": "string",
"file_unique_id": "string",
"file_size": 42,
"file_date": 42
},
"selfie": {
"file_id": "string",
"file_unique_id": "string",
"file_size": 42,
"file_date": 42
},
"translation": [
{
"file_id": "string",
"file_unique_id": "string",
"file_size": 42,
"file_date": 42
}
],
"hash": "string"
}
],
"credentials": {
"data": "string",
"hash": "string",
"secret": "string"
}
},
"proximity_alert_triggered": {
"traveler": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"watcher": {
"id": 42,
"is_bot": true,
"first_name": "string",
"last_name": "string",
"username": "string",
"language_code": "string",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": true
},
"distance": 42
},
"reply_markup": {
"": [
[
{}
]
]
}
}
}
{
"ok": false,
"error_code": 42,
"description": "string",
"parameters": {
"migrate_to_chat_id": 42,
"retry_after": 42
}
}
{
"ok": false,
"error_code": 42,
"description": "string",
"parameters": {
"migrate_to_chat_id": 42,
"retry_after": 42
}
}