From ce9bcf9d653a0598b41fcf52708d01b396c6fd30 Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Sun, 27 May 2018 22:44:51 +0300 Subject: Update README.md and docs --- README.md | 23 +- docs/_api_8h.html | 4 +- docs/_api_8h_source.html | 66 +- docs/_audio_8h.html | 2 +- docs/_audio_8h_source.html | 4 +- docs/_bot_8h.html | 2 +- docs/_bot_8h_source.html | 6 +- docs/_callback_query_8h.html | 2 +- docs/_callback_query_8h_source.html | 4 +- docs/_chat_8h.html | 3 +- docs/_chat_8h_source.html | 32 +- docs/_chat_member_8h.html | 2 +- docs/_chat_member_8h_source.html | 26 +- docs/_chat_photo_8h.html | 116 + docs/_chat_photo_8h_source.html | 103 + docs/_chosen_inline_result_8h.html | 2 +- docs/_chosen_inline_result_8h_source.html | 4 +- docs/_contact_8h.html | 2 +- docs/_contact_8h_source.html | 4 +- docs/_document_8h.html | 2 +- docs/_document_8h_source.html | 4 +- docs/_event_broadcaster_8h.html | 2 +- docs/_event_broadcaster_8h_source.html | 4 +- docs/_event_handler_8h.html | 2 +- docs/_event_handler_8h_source.html | 4 +- docs/_file_8h.html | 2 +- docs/_file_8h_source.html | 4 +- docs/_file_tools_8h.html | 2 +- docs/_file_tools_8h_source.html | 2 +- docs/_force_reply_8h.html | 2 +- docs/_force_reply_8h_source.html | 4 +- docs/_generic_reply_8h.html | 2 +- docs/_generic_reply_8h_source.html | 4 +- docs/_http_client_8h.html | 2 +- docs/_http_client_8h_source.html | 4 +- docs/_http_parser_8h.html | 2 +- docs/_http_parser_8h_source.html | 4 +- docs/_http_req_arg_8h.html | 2 +- docs/_http_req_arg_8h_source.html | 4 +- docs/_http_server_8h.html | 2 +- docs/_http_server_8h_source.html | 6 +- docs/_inline_keyboard_button_8h.html | 2 +- docs/_inline_keyboard_button_8h_source.html | 4 +- docs/_inline_keyboard_markup_8h.html | 2 +- docs/_inline_keyboard_markup_8h_source.html | 4 +- docs/_inline_query_8h.html | 2 +- docs/_inline_query_8h_source.html | 4 +- docs/_inline_query_result_8h.html | 2 +- docs/_inline_query_result_8h_source.html | 6 +- docs/_inline_query_result_article_8h.html | 2 +- docs/_inline_query_result_article_8h_source.html | 4 +- docs/_inline_query_result_audio_8h.html | 2 +- docs/_inline_query_result_audio_8h_source.html | 4 +- docs/_inline_query_result_cached_audio_8h.html | 2 +- ...inline_query_result_cached_audio_8h_source.html | 4 +- docs/_inline_query_result_cached_document_8h.html | 2 +- ...ine_query_result_cached_document_8h_source.html | 4 +- docs/_inline_query_result_cached_gif_8h.html | 2 +- .../_inline_query_result_cached_gif_8h_source.html | 4 +- docs/_inline_query_result_cached_mpeg4_gif_8h.html | 2 +- ...ne_query_result_cached_mpeg4_gif_8h_source.html | 4 +- docs/_inline_query_result_cached_photo_8h.html | 2 +- ...inline_query_result_cached_photo_8h_source.html | 4 +- docs/_inline_query_result_cached_sticker_8h.html | 2 +- ...line_query_result_cached_sticker_8h_source.html | 4 +- docs/_inline_query_result_cached_video_8h.html | 2 +- ...inline_query_result_cached_video_8h_source.html | 4 +- docs/_inline_query_result_cached_voice_8h.html | 2 +- ...inline_query_result_cached_voice_8h_source.html | 4 +- docs/_inline_query_result_contact_8h.html | 2 +- docs/_inline_query_result_contact_8h_source.html | 4 +- docs/_inline_query_result_document_8h.html | 2 +- docs/_inline_query_result_document_8h_source.html | 4 +- docs/_inline_query_result_game_8h.html | 2 +- docs/_inline_query_result_game_8h_source.html | 4 +- docs/_inline_query_result_gif_8h.html | 2 +- docs/_inline_query_result_gif_8h_source.html | 9 +- docs/_inline_query_result_location_8h.html | 2 +- docs/_inline_query_result_location_8h_source.html | 4 +- docs/_inline_query_result_mpeg4_gif_8h.html | 2 +- docs/_inline_query_result_mpeg4_gif_8h_source.html | 9 +- docs/_inline_query_result_photo_8h.html | 2 +- docs/_inline_query_result_photo_8h_source.html | 4 +- docs/_inline_query_result_venue_8h.html | 2 +- docs/_inline_query_result_venue_8h_source.html | 4 +- docs/_inline_query_result_video_8h.html | 2 +- docs/_inline_query_result_video_8h_source.html | 4 +- docs/_inline_query_result_voice_8h.html | 2 +- docs/_inline_query_result_voice_8h_source.html | 4 +- docs/_input_contact_message_content_8h.html | 2 +- docs/_input_contact_message_content_8h_source.html | 6 +- docs/_input_file_8h.html | 2 +- docs/_input_file_8h_source.html | 4 +- docs/_input_location_message_content_8h.html | 2 +- .../_input_location_message_content_8h_source.html | 6 +- docs/_input_media_8h.html | 116 + docs/_input_media_8h_source.html | 112 + docs/_input_media_photo_8h.html | 117 + docs/_input_media_photo_8h_source.html | 106 + docs/_input_media_video_8h.html | 117 + docs/_input_media_video_8h_source.html | 106 + docs/_input_message_content_8h.html | 3 +- docs/_input_message_content_8h_source.html | 14 +- docs/_input_text_message_content_8h.html | 2 +- docs/_input_text_message_content_8h_source.html | 6 +- docs/_input_venue_message_content_8h.html | 2 +- docs/_input_venue_message_content_8h_source.html | 6 +- docs/_invoice_8h.html | 117 + docs/_invoice_8h_source.html | 106 + docs/_keyboard_button_8h.html | 2 +- docs/_keyboard_button_8h_source.html | 4 +- docs/_labeled_price_8h.html | 117 + docs/_labeled_price_8h_source.html | 103 + docs/_location_8h.html | 2 +- docs/_location_8h_source.html | 4 +- docs/_mask_position_8h.html | 116 + docs/_mask_position_8h_source.html | 105 + docs/_message_8h.html | 2 +- docs/_message_8h_source.html | 64 +- docs/_message_entity_8h.html | 2 +- docs/_message_entity_8h_source.html | 4 +- docs/_order_info_8h.html | 118 + docs/_order_info_8h_source.html | 107 + docs/_photo_size_8h.html | 2 +- docs/_photo_size_8h_source.html | 4 +- docs/_pre_checkout_query_8h.html | 120 + docs/_pre_checkout_query_8h_source.html | 112 + docs/_reply_keyboard_markup_8h.html | 2 +- docs/_reply_keyboard_markup_8h_source.html | 4 +- docs/_reply_keyboard_remove_8h.html | 2 +- docs/_reply_keyboard_remove_8h_source.html | 4 +- docs/_response_parameters_8h.html | 2 +- docs/_response_parameters_8h_source.html | 4 +- docs/_shipping_address_8h.html | 117 + docs/_shipping_address_8h_source.html | 107 + docs/_shipping_option_8h.html | 119 + docs/_shipping_option_8h_source.html | 105 + docs/_shipping_query_8h.html | 120 + docs/_shipping_query_8h_source.html | 109 + docs/_sticker_8h.html | 3 +- docs/_sticker_8h_source.html | 24 +- docs/_sticker_set_8h.html | 118 + docs/_sticker_set_8h_source.html | 106 + docs/_string_tools_8h.html | 2 +- docs/_string_tools_8h_source.html | 2 +- docs/_successful_payment_8h.html | 119 + docs/_successful_payment_8h_source.html | 110 + docs/_tg_exception_8h.html | 2 +- docs/_tg_exception_8h_source.html | 4 +- docs/_tg_long_poll_8h.html | 2 +- docs/_tg_long_poll_8h_source.html | 6 +- docs/_tg_type_parser_8h.html | 17 +- docs/_tg_type_parser_8h_source.html | 90 +- docs/_tg_webhook_local_server_8h.html | 2 +- docs/_tg_webhook_local_server_8h_source.html | 4 +- docs/_tg_webhook_server_8h.html | 2 +- docs/_tg_webhook_server_8h_source.html | 4 +- docs/_tg_webhook_tcp_server_8h.html | 2 +- docs/_tg_webhook_tcp_server_8h_source.html | 4 +- docs/_update_8h.html | 2 +- docs/_update_8h_source.html | 4 +- docs/_url_8h.html | 2 +- docs/_url_8h_source.html | 4 +- docs/_user_8h.html | 2 +- docs/_user_8h_source.html | 12 +- docs/_user_profile_photos_8h.html | 2 +- docs/_user_profile_photos_8h_source.html | 4 +- docs/_venue_8h.html | 2 +- docs/_venue_8h_source.html | 4 +- docs/_video_8h.html | 2 +- docs/_video_8h_source.html | 4 +- docs/_video_note_8h.html | 117 + docs/_video_note_8h_source.html | 108 + docs/_voice_8h.html | 2 +- docs/_voice_8h_source.html | 4 +- docs/_webhook_info_8h.html | 2 +- docs/_webhook_info_8h_source.html | 4 +- docs/annotated.html | 147 +- docs/class_tg_bot_1_1_api-members.html | 88 +- docs/class_tg_bot_1_1_api.html | 2546 ++++++++++++++------ docs/class_tg_bot_1_1_api.js | 64 +- docs/class_tg_bot_1_1_audio-members.html | 2 +- docs/class_tg_bot_1_1_audio.html | 2 +- docs/class_tg_bot_1_1_bot-members.html | 2 +- docs/class_tg_bot_1_1_bot.html | 2 +- docs/class_tg_bot_1_1_callback_query-members.html | 2 +- docs/class_tg_bot_1_1_callback_query.html | 2 +- docs/class_tg_bot_1_1_chat-members.html | 12 +- docs/class_tg_bot_1_1_chat.html | 138 +- docs/class_tg_bot_1_1_chat.js | 6 + docs/class_tg_bot_1_1_chat_member-members.html | 20 +- docs/class_tg_bot_1_1_chat_member.html | 278 ++- docs/class_tg_bot_1_1_chat_member.js | 14 + docs/class_tg_bot_1_1_chat_photo-members.html | 103 + docs/class_tg_bot_1_1_chat_photo.html | 176 ++ docs/class_tg_bot_1_1_chat_photo.js | 6 + ...ss_tg_bot_1_1_chosen_inline_result-members.html | 2 +- docs/class_tg_bot_1_1_chosen_inline_result.html | 2 +- docs/class_tg_bot_1_1_contact-members.html | 2 +- docs/class_tg_bot_1_1_contact.html | 2 +- docs/class_tg_bot_1_1_document-members.html | 2 +- docs/class_tg_bot_1_1_document.html | 2 +- ...class_tg_bot_1_1_event_broadcaster-members.html | 2 +- docs/class_tg_bot_1_1_event_broadcaster.html | 2 +- docs/class_tg_bot_1_1_event_handler-members.html | 2 +- docs/class_tg_bot_1_1_event_handler.html | 2 +- docs/class_tg_bot_1_1_file-members.html | 2 +- docs/class_tg_bot_1_1_file.html | 2 +- docs/class_tg_bot_1_1_force_reply-members.html | 2 +- docs/class_tg_bot_1_1_force_reply.html | 2 +- docs/class_tg_bot_1_1_generic_reply-members.html | 2 +- docs/class_tg_bot_1_1_generic_reply.html | 2 +- docs/class_tg_bot_1_1_http_client-members.html | 2 +- docs/class_tg_bot_1_1_http_client.html | 2 +- docs/class_tg_bot_1_1_http_parser-members.html | 2 +- docs/class_tg_bot_1_1_http_parser.html | 2 +- docs/class_tg_bot_1_1_http_req_arg-members.html | 2 +- docs/class_tg_bot_1_1_http_req_arg.html | 2 +- docs/class_tg_bot_1_1_http_server-members.html | 2 +- docs/class_tg_bot_1_1_http_server.html | 2 +- ...bot_1_1_http_server_1_1_connection-members.html | 2 +- ...lass_tg_bot_1_1_http_server_1_1_connection.html | 2 +- ..._tg_bot_1_1_inline_keyboard_button-members.html | 2 +- docs/class_tg_bot_1_1_inline_keyboard_button.html | 2 +- ..._tg_bot_1_1_inline_keyboard_markup-members.html | 2 +- docs/class_tg_bot_1_1_inline_keyboard_markup.html | 2 +- docs/class_tg_bot_1_1_inline_query-members.html | 2 +- docs/class_tg_bot_1_1_inline_query.html | 2 +- ...ass_tg_bot_1_1_inline_query_result-members.html | 2 +- docs/class_tg_bot_1_1_inline_query_result.html | 2 +- ...ot_1_1_inline_query_result_article-members.html | 2 +- ...ass_tg_bot_1_1_inline_query_result_article.html | 2 +- ..._bot_1_1_inline_query_result_audio-members.html | 2 +- ...class_tg_bot_1_1_inline_query_result_audio.html | 2 +- ...1_inline_query_result_cached_audio-members.html | 2 +- ...g_bot_1_1_inline_query_result_cached_audio.html | 2 +- ...nline_query_result_cached_document-members.html | 2 +- ...ot_1_1_inline_query_result_cached_document.html | 2 +- ...1_1_inline_query_result_cached_gif-members.html | 2 +- ..._tg_bot_1_1_inline_query_result_cached_gif.html | 2 +- ...line_query_result_cached_mpeg4_gif-members.html | 2 +- ...t_1_1_inline_query_result_cached_mpeg4_gif.html | 2 +- ...1_inline_query_result_cached_photo-members.html | 2 +- ...g_bot_1_1_inline_query_result_cached_photo.html | 2 +- ...inline_query_result_cached_sticker-members.html | 2 +- ...bot_1_1_inline_query_result_cached_sticker.html | 2 +- ...1_inline_query_result_cached_video-members.html | 2 +- ...g_bot_1_1_inline_query_result_cached_video.html | 2 +- ...1_inline_query_result_cached_voice-members.html | 2 +- ...g_bot_1_1_inline_query_result_cached_voice.html | 2 +- ...ot_1_1_inline_query_result_contact-members.html | 2 +- ...ass_tg_bot_1_1_inline_query_result_contact.html | 2 +- ...t_1_1_inline_query_result_document-members.html | 2 +- ...ss_tg_bot_1_1_inline_query_result_document.html | 2 +- ...g_bot_1_1_inline_query_result_game-members.html | 2 +- .../class_tg_bot_1_1_inline_query_result_game.html | 2 +- ...tg_bot_1_1_inline_query_result_gif-members.html | 29 +- docs/class_tg_bot_1_1_inline_query_result_gif.html | 23 +- docs/class_tg_bot_1_1_inline_query_result_gif.js | 1 + ...t_1_1_inline_query_result_location-members.html | 2 +- ...ss_tg_bot_1_1_inline_query_result_location.html | 2 +- ..._1_1_inline_query_result_mpeg4_gif-members.html | 21 +- ...s_tg_bot_1_1_inline_query_result_mpeg4_gif.html | 23 +- ...ass_tg_bot_1_1_inline_query_result_mpeg4_gif.js | 1 + ..._bot_1_1_inline_query_result_photo-members.html | 2 +- ...class_tg_bot_1_1_inline_query_result_photo.html | 2 +- ..._bot_1_1_inline_query_result_venue-members.html | 2 +- ...class_tg_bot_1_1_inline_query_result_venue.html | 2 +- ..._bot_1_1_inline_query_result_video-members.html | 2 +- ...class_tg_bot_1_1_inline_query_result_video.html | 2 +- ..._bot_1_1_inline_query_result_voice-members.html | 2 +- ...class_tg_bot_1_1_inline_query_result_voice.html | 2 +- ..._1_1_input_contact_message_content-members.html | 2 +- ...s_tg_bot_1_1_input_contact_message_content.html | 2 +- docs/class_tg_bot_1_1_input_file-members.html | 2 +- docs/class_tg_bot_1_1_input_file.html | 2 +- ...1_1_input_location_message_content-members.html | 2 +- ..._tg_bot_1_1_input_location_message_content.html | 2 +- docs/class_tg_bot_1_1_input_media-members.html | 110 + docs/class_tg_bot_1_1_input_media.html | 333 +++ docs/class_tg_bot_1_1_input_media.js | 16 + docs/class_tg_bot_1_1_input_media.png | Bin 0 -> 900 bytes ...class_tg_bot_1_1_input_media_photo-members.html | 111 + docs/class_tg_bot_1_1_input_media_photo.html | 203 ++ docs/class_tg_bot_1_1_input_media_photo.js | 5 + docs/class_tg_bot_1_1_input_media_photo.png | Bin 0 -> 662 bytes ...class_tg_bot_1_1_input_media_video-members.html | 111 + docs/class_tg_bot_1_1_input_media_video.html | 203 ++ docs/class_tg_bot_1_1_input_media_video.js | 5 + docs/class_tg_bot_1_1_input_media_video.png | Bin 0 -> 672 bytes ...s_tg_bot_1_1_input_message_content-members.html | 2 +- docs/class_tg_bot_1_1_input_message_content.html | 12 +- ...bot_1_1_input_text_message_content-members.html | 2 +- ...lass_tg_bot_1_1_input_text_message_content.html | 2 +- ...ot_1_1_input_venue_message_content-members.html | 2 +- ...ass_tg_bot_1_1_input_venue_message_content.html | 2 +- docs/class_tg_bot_1_1_invoice-members.html | 106 + docs/class_tg_bot_1_1_invoice.html | 249 ++ docs/class_tg_bot_1_1_invoice.js | 9 + docs/class_tg_bot_1_1_keyboard_button-members.html | 2 +- docs/class_tg_bot_1_1_keyboard_button.html | 2 +- docs/class_tg_bot_1_1_labeled_price-members.html | 103 + docs/class_tg_bot_1_1_labeled_price.html | 186 ++ docs/class_tg_bot_1_1_labeled_price.js | 6 + docs/class_tg_bot_1_1_location-members.html | 2 +- docs/class_tg_bot_1_1_location.html | 2 +- docs/class_tg_bot_1_1_mask_position-members.html | 105 + docs/class_tg_bot_1_1_mask_position.html | 214 ++ docs/class_tg_bot_1_1_mask_position.js | 8 + docs/class_tg_bot_1_1_message-members.html | 26 +- docs/class_tg_bot_1_1_message.html | 132 +- docs/class_tg_bot_1_1_message.js | 4 + docs/class_tg_bot_1_1_message_entity-members.html | 2 +- docs/class_tg_bot_1_1_message_entity.html | 2 +- docs/class_tg_bot_1_1_order_info-members.html | 105 + docs/class_tg_bot_1_1_order_info.html | 226 ++ docs/class_tg_bot_1_1_order_info.js | 8 + docs/class_tg_bot_1_1_photo_size-members.html | 2 +- docs/class_tg_bot_1_1_photo_size.html | 2 +- ...lass_tg_bot_1_1_pre_checkout_query-members.html | 108 + docs/class_tg_bot_1_1_pre_checkout_query.html | 291 +++ docs/class_tg_bot_1_1_pre_checkout_query.js | 11 + ...s_tg_bot_1_1_reply_keyboard_markup-members.html | 2 +- docs/class_tg_bot_1_1_reply_keyboard_markup.html | 2 +- ...s_tg_bot_1_1_reply_keyboard_remove-members.html | 2 +- docs/class_tg_bot_1_1_reply_keyboard_remove.html | 2 +- ...ass_tg_bot_1_1_response_parameters-members.html | 2 +- docs/class_tg_bot_1_1_response_parameters.html | 2 +- .../class_tg_bot_1_1_shipping_address-members.html | 107 + docs/class_tg_bot_1_1_shipping_address.html | 266 ++ docs/class_tg_bot_1_1_shipping_address.js | 10 + docs/class_tg_bot_1_1_shipping_option-members.html | 104 + docs/class_tg_bot_1_1_shipping_option.html | 205 ++ docs/class_tg_bot_1_1_shipping_option.js | 7 + docs/class_tg_bot_1_1_shipping_query-members.html | 105 + docs/class_tg_bot_1_1_shipping_query.html | 226 ++ docs/class_tg_bot_1_1_shipping_query.js | 8 + docs/class_tg_bot_1_1_sticker-members.html | 6 +- docs/class_tg_bot_1_1_sticker.html | 56 +- docs/class_tg_bot_1_1_sticker.js | 2 + docs/class_tg_bot_1_1_sticker_set-members.html | 105 + docs/class_tg_bot_1_1_sticker_set.html | 214 ++ docs/class_tg_bot_1_1_sticker_set.js | 8 + ...lass_tg_bot_1_1_successful_payment-members.html | 108 + docs/class_tg_bot_1_1_successful_payment.html | 291 +++ docs/class_tg_bot_1_1_successful_payment.js | 11 + docs/class_tg_bot_1_1_tg_exception-members.html | 2 +- docs/class_tg_bot_1_1_tg_exception.html | 2 +- docs/class_tg_bot_1_1_tg_long_poll-members.html | 2 +- docs/class_tg_bot_1_1_tg_long_poll.html | 2 +- docs/class_tg_bot_1_1_tg_type_parser-members.html | 144 +- docs/class_tg_bot_1_1_tg_type_parser.html | 546 ++++- docs/class_tg_bot_1_1_tg_type_parser.js | 26 + ...class_tg_bot_1_1_tg_webhook_server-members.html | 2 +- docs/class_tg_bot_1_1_tg_webhook_server.html | 2 +- ...s_tg_bot_1_1_tg_webhook_tcp_server-members.html | 2 +- docs/class_tg_bot_1_1_tg_webhook_tcp_server.html | 2 +- docs/class_tg_bot_1_1_update-members.html | 2 +- docs/class_tg_bot_1_1_update.html | 2 +- docs/class_tg_bot_1_1_url-members.html | 2 +- docs/class_tg_bot_1_1_url.html | 2 +- docs/class_tg_bot_1_1_user-members.html | 4 +- docs/class_tg_bot_1_1_user.html | 46 +- docs/class_tg_bot_1_1_user.js | 2 + ...ass_tg_bot_1_1_user_profile_photos-members.html | 2 +- docs/class_tg_bot_1_1_user_profile_photos.html | 2 +- docs/class_tg_bot_1_1_venue-members.html | 2 +- docs/class_tg_bot_1_1_venue.html | 2 +- docs/class_tg_bot_1_1_video-members.html | 2 +- docs/class_tg_bot_1_1_video.html | 2 +- docs/class_tg_bot_1_1_video_note-members.html | 106 + docs/class_tg_bot_1_1_video_note.html | 233 ++ docs/class_tg_bot_1_1_video_note.js | 9 + docs/class_tg_bot_1_1_voice-members.html | 2 +- docs/class_tg_bot_1_1_voice.html | 2 +- docs/class_tg_bot_1_1_webhook_info-members.html | 2 +- docs/class_tg_bot_1_1_webhook_info.html | 2 +- docs/classes.html | 73 +- docs/dir_25b26b9fa3b0bd1537052b03f43dd617.html | 2 +- docs/dir_933963de0e9d7c93f6217fb7d7e6c3ad.html | 2 +- docs/dir_d3a0916884c776a83ed0f419714df887.html | 2 +- docs/dir_d44c64559bbebec7f509842c48db8b23.html | 2 +- docs/dir_edd914e3fbf8e89da3c33d1968dd487e.html | 32 +- docs/dir_edd914e3fbf8e89da3c33d1968dd487e.js | 15 + docs/files.html | 135 +- docs/functions.html | 2 +- docs/functions_0x7e.html | 2 +- docs/functions_a.html | 11 +- docs/functions_b.html | 5 +- docs/functions_c.html | 65 +- docs/functions_d.html | 19 +- docs/functions_dup.js | 2 + docs/functions_e.html | 17 +- docs/functions_enum.html | 5 +- docs/functions_f.html | 9 +- docs/functions_func.html | 5 +- docs/functions_func.js | 1 + docs/functions_func_0x7e.html | 2 +- docs/functions_func_b.html | 2 +- docs/functions_func_c.html | 5 +- docs/functions_func_d.html | 11 +- docs/functions_func_e.html | 14 +- docs/functions_func_f.html | 2 +- docs/functions_func_g.html | 5 +- docs/functions_func_h.html | 2 +- docs/functions_func_i.html | 8 +- docs/functions_func_k.html | 4 +- docs/functions_func_l.html | 2 +- docs/functions_func_m.html | 2 +- docs/functions_func_o.html | 2 +- docs/functions_func_p.html | 88 +- docs/functions_func_r.html | 100 + docs/functions_func_s.html | 46 +- docs/functions_func_t.html | 2 +- docs/functions_func_u.html | 8 +- docs/functions_g.html | 8 +- docs/functions_h.html | 5 +- docs/functions_i.html | 22 +- docs/functions_j.html | 2 +- docs/functions_k.html | 4 +- docs/functions_l.html | 9 +- docs/functions_m.html | 11 +- docs/functions_n.html | 7 +- docs/functions_o.html | 8 +- docs/functions_p.html | 125 +- docs/functions_q.html | 2 +- docs/functions_r.html | 5 +- docs/functions_rela.html | 2 +- docs/functions_s.html | 84 +- docs/functions_t.html | 24 +- docs/functions_type.html | 17 +- docs/functions_u.html | 11 +- docs/functions_v.html | 2 +- docs/functions_vars.html | 2 +- docs/functions_vars.js | 5 +- docs/functions_vars_a.html | 8 +- docs/functions_vars_b.html | 100 + docs/functions_vars_c.html | 62 +- docs/functions_vars_d.html | 8 +- docs/functions_vars_e.html | 5 +- docs/functions_vars_f.html | 9 +- docs/functions_vars_g.html | 5 +- docs/functions_vars_h.html | 5 +- docs/functions_vars_i.html | 16 +- docs/functions_vars_k.html | 2 +- docs/functions_vars_l.html | 9 +- docs/functions_vars_m.html | 11 +- docs/functions_vars_n.html | 7 +- docs/functions_vars_o.html | 6 +- docs/functions_vars_p.html | 24 +- docs/functions_vars_q.html | 2 +- docs/functions_vars_r.html | 2 +- docs/functions_vars_s.html | 40 +- docs/functions_vars_t.html | 17 +- docs/functions_vars_u.html | 5 +- docs/functions_vars_v.html | 2 +- docs/functions_vars_w.html | 5 +- docs/functions_vars_x.html | 100 + docs/functions_vars_y.html | 100 + docs/functions_w.html | 5 +- docs/functions_x.html | 100 + docs/functions_y.html | 100 + docs/group__general.html | 2 +- docs/group__general.js | 64 +- docs/group__net.html | 2 +- docs/group__tools.html | 2 +- docs/group__types.html | 40 +- docs/group__types.js | 142 ++ docs/hierarchy.html | 153 +- docs/hierarchy.js | 16 + docs/index.html | 2 +- docs/menudata.js | 8 +- docs/modules.html | 2 +- docs/namespace_file_tools.html | 2 +- docs/namespace_string_tools.html | 2 +- docs/namespace_tg_bot.html | 40 +- docs/namespace_tg_bot.js | 15 + docs/namespacemembers.html | 2 +- docs/namespacemembers_func.html | 2 +- docs/namespaces.html | 2 +- docs/navtreedata.js | 7 +- docs/navtreeindex0.js | 392 +-- docs/navtreeindex1.js | 428 ++-- docs/navtreeindex2.js | 500 ++-- docs/navtreeindex3.js | 361 ++- docs/navtreeindex4.js | 96 + docs/search/all_1.js | 5 +- docs/search/all_10.js | 44 +- docs/search/all_12.js | 1 + docs/search/all_13.js | 49 +- docs/search/all_14.js | 8 +- docs/search/all_15.js | 5 +- docs/search/all_16.js | 4 +- docs/search/all_17.js | 2 +- docs/search/all_18.js | 8 +- docs/search/all_19.html | 26 + docs/search/all_19.js | 4 + docs/search/all_1a.html | 26 + docs/search/all_1a.js | 10 + docs/search/all_2.js | 1 + docs/search/all_3.js | 26 +- docs/search/all_4.js | 8 +- docs/search/all_5.js | 11 +- docs/search/all_6.js | 7 +- docs/search/all_7.js | 2 + docs/search/all_8.js | 2 +- docs/search/all_9.js | 13 +- docs/search/all_b.js | 2 +- docs/search/all_c.js | 6 +- docs/search/all_d.js | 4 + docs/search/all_e.js | 3 +- docs/search/all_f.js | 4 +- docs/search/classes_10.js | 10 +- docs/search/classes_11.js | 7 +- docs/search/classes_12.js | 5 +- docs/search/classes_13.html | 26 + docs/search/classes_13.js | 4 + docs/search/classes_2.js | 1 + docs/search/classes_8.js | 6 +- docs/search/classes_a.js | 1 + docs/search/classes_b.js | 1 + docs/search/classes_c.js | 2 +- docs/search/classes_d.js | 5 +- docs/search/classes_e.js | 4 +- docs/search/classes_f.js | 12 +- docs/search/enums_0.js | 2 +- docs/search/enumvalues_2.js | 1 + docs/search/enumvalues_4.html | 26 + docs/search/enumvalues_4.js | 4 + docs/search/files_10.js | 11 +- docs/search/files_11.js | 7 +- docs/search/files_12.js | 5 +- docs/search/files_13.html | 26 + docs/search/files_13.js | 4 + docs/search/files_2.js | 1 + docs/search/files_8.js | 6 +- docs/search/files_a.js | 1 + docs/search/files_b.js | 1 + docs/search/files_c.js | 2 +- docs/search/files_d.js | 5 +- docs/search/files_e.js | 5 +- docs/search/files_f.js | 14 +- docs/search/functions_0.js | 1 + docs/search/functions_11.js | 2 + docs/search/functions_2.js | 3 +- docs/search/functions_3.js | 3 + docs/search/functions_4.js | 10 +- docs/search/functions_6.js | 1 + docs/search/functions_8.js | 2 + docs/search/functions_9.js | 2 +- docs/search/functions_d.js | 30 +- docs/search/functions_e.js | 3 +- docs/search/functions_f.js | 30 +- docs/search/searchdata.js | 10 +- docs/search/typedefs_4.js | 2 +- docs/search/variables_1.js | 4 +- docs/search/variables_10.js | 9 +- docs/search/variables_11.js | 16 +- docs/search/variables_12.js | 28 +- docs/search/variables_13.js | 15 +- docs/search/variables_14.js | 18 +- docs/search/variables_15.js | 13 +- docs/search/variables_16.html | 26 + docs/search/variables_16.js | 4 + docs/search/variables_17.html | 26 + docs/search/variables_17.js | 4 + docs/search/variables_18.html | 26 + docs/search/variables_18.js | 4 + docs/search/variables_2.js | 10 +- docs/search/variables_3.js | 37 +- docs/search/variables_4.js | 14 +- docs/search/variables_5.js | 22 +- docs/search/variables_6.js | 23 +- docs/search/variables_7.js | 11 +- docs/search/variables_8.js | 10 +- docs/search/variables_9.js | 10 +- docs/search/variables_a.js | 9 +- docs/search/variables_b.js | 22 +- docs/search/variables_c.js | 19 +- docs/search/variables_d.js | 7 +- docs/search/variables_e.js | 16 +- docs/search/variables_f.js | 18 +- docs/tgbot_8h.html | 3 +- docs/tgbot_8h_source.html | 5 +- 584 files changed, 16403 insertions(+), 2785 deletions(-) create mode 100644 docs/_chat_photo_8h.html create mode 100644 docs/_chat_photo_8h_source.html create mode 100644 docs/_input_media_8h.html create mode 100644 docs/_input_media_8h_source.html create mode 100644 docs/_input_media_photo_8h.html create mode 100644 docs/_input_media_photo_8h_source.html create mode 100644 docs/_input_media_video_8h.html create mode 100644 docs/_input_media_video_8h_source.html create mode 100644 docs/_invoice_8h.html create mode 100644 docs/_invoice_8h_source.html create mode 100644 docs/_labeled_price_8h.html create mode 100644 docs/_labeled_price_8h_source.html create mode 100644 docs/_mask_position_8h.html create mode 100644 docs/_mask_position_8h_source.html create mode 100644 docs/_order_info_8h.html create mode 100644 docs/_order_info_8h_source.html create mode 100644 docs/_pre_checkout_query_8h.html create mode 100644 docs/_pre_checkout_query_8h_source.html create mode 100644 docs/_shipping_address_8h.html create mode 100644 docs/_shipping_address_8h_source.html create mode 100644 docs/_shipping_option_8h.html create mode 100644 docs/_shipping_option_8h_source.html create mode 100644 docs/_shipping_query_8h.html create mode 100644 docs/_shipping_query_8h_source.html create mode 100644 docs/_sticker_set_8h.html create mode 100644 docs/_sticker_set_8h_source.html create mode 100644 docs/_successful_payment_8h.html create mode 100644 docs/_successful_payment_8h_source.html create mode 100644 docs/_video_note_8h.html create mode 100644 docs/_video_note_8h_source.html create mode 100644 docs/class_tg_bot_1_1_chat_photo-members.html create mode 100644 docs/class_tg_bot_1_1_chat_photo.html create mode 100644 docs/class_tg_bot_1_1_chat_photo.js create mode 100644 docs/class_tg_bot_1_1_input_media-members.html create mode 100644 docs/class_tg_bot_1_1_input_media.html create mode 100644 docs/class_tg_bot_1_1_input_media.js create mode 100644 docs/class_tg_bot_1_1_input_media.png create mode 100644 docs/class_tg_bot_1_1_input_media_photo-members.html create mode 100644 docs/class_tg_bot_1_1_input_media_photo.html create mode 100644 docs/class_tg_bot_1_1_input_media_photo.js create mode 100644 docs/class_tg_bot_1_1_input_media_photo.png create mode 100644 docs/class_tg_bot_1_1_input_media_video-members.html create mode 100644 docs/class_tg_bot_1_1_input_media_video.html create mode 100644 docs/class_tg_bot_1_1_input_media_video.js create mode 100644 docs/class_tg_bot_1_1_input_media_video.png create mode 100644 docs/class_tg_bot_1_1_invoice-members.html create mode 100644 docs/class_tg_bot_1_1_invoice.html create mode 100644 docs/class_tg_bot_1_1_invoice.js create mode 100644 docs/class_tg_bot_1_1_labeled_price-members.html create mode 100644 docs/class_tg_bot_1_1_labeled_price.html create mode 100644 docs/class_tg_bot_1_1_labeled_price.js create mode 100644 docs/class_tg_bot_1_1_mask_position-members.html create mode 100644 docs/class_tg_bot_1_1_mask_position.html create mode 100644 docs/class_tg_bot_1_1_mask_position.js create mode 100644 docs/class_tg_bot_1_1_order_info-members.html create mode 100644 docs/class_tg_bot_1_1_order_info.html create mode 100644 docs/class_tg_bot_1_1_order_info.js create mode 100644 docs/class_tg_bot_1_1_pre_checkout_query-members.html create mode 100644 docs/class_tg_bot_1_1_pre_checkout_query.html create mode 100644 docs/class_tg_bot_1_1_pre_checkout_query.js create mode 100644 docs/class_tg_bot_1_1_shipping_address-members.html create mode 100644 docs/class_tg_bot_1_1_shipping_address.html create mode 100644 docs/class_tg_bot_1_1_shipping_address.js create mode 100644 docs/class_tg_bot_1_1_shipping_option-members.html create mode 100644 docs/class_tg_bot_1_1_shipping_option.html create mode 100644 docs/class_tg_bot_1_1_shipping_option.js create mode 100644 docs/class_tg_bot_1_1_shipping_query-members.html create mode 100644 docs/class_tg_bot_1_1_shipping_query.html create mode 100644 docs/class_tg_bot_1_1_shipping_query.js create mode 100644 docs/class_tg_bot_1_1_sticker_set-members.html create mode 100644 docs/class_tg_bot_1_1_sticker_set.html create mode 100644 docs/class_tg_bot_1_1_sticker_set.js create mode 100644 docs/class_tg_bot_1_1_successful_payment-members.html create mode 100644 docs/class_tg_bot_1_1_successful_payment.html create mode 100644 docs/class_tg_bot_1_1_successful_payment.js create mode 100644 docs/class_tg_bot_1_1_video_note-members.html create mode 100644 docs/class_tg_bot_1_1_video_note.html create mode 100644 docs/class_tg_bot_1_1_video_note.js create mode 100644 docs/functions_func_r.html create mode 100644 docs/functions_vars_b.html create mode 100644 docs/functions_vars_x.html create mode 100644 docs/functions_vars_y.html create mode 100644 docs/functions_x.html create mode 100644 docs/functions_y.html create mode 100644 docs/navtreeindex4.js create mode 100644 docs/search/all_19.html create mode 100644 docs/search/all_19.js create mode 100644 docs/search/all_1a.html create mode 100644 docs/search/all_1a.js create mode 100644 docs/search/classes_13.html create mode 100644 docs/search/classes_13.js create mode 100644 docs/search/enumvalues_4.html create mode 100644 docs/search/enumvalues_4.js create mode 100644 docs/search/files_13.html create mode 100644 docs/search/files_13.js create mode 100644 docs/search/variables_16.html create mode 100644 docs/search/variables_16.js create mode 100644 docs/search/variables_17.html create mode 100644 docs/search/variables_17.js create mode 100644 docs/search/variables_18.html create mode 100644 docs/search/variables_18.js diff --git a/README.md b/README.md index b213846..74d4b8d 100644 --- a/README.md +++ b/README.md @@ -2,18 +2,31 @@ [![Build Status](https://travis-ci.org/reo7sp/tgbot-cpp.svg?branch=master)](https://travis-ci.org/reo7sp/tgbot-cpp) [![Docker Hub pulls](https://img.shields.io/docker/pulls/reo7sp/tgbot-cpp.svg)](https://hub.docker.com/r/reo7sp/tgbot-cpp/) -[![GitHub contributors](https://img.shields.io/github/contributors/reo7sp/tgbot-cpp.svg)](https://github.com/reo7sp/tgbot-cpp/graphs/contributors) - -[![Contact reo7sp](https://img.shields.io/badge/telegram-contact-green.svg)](https://t.me/reo7sp) -[![Join the chat at https://gitter.im/reo7sp/tgbot-cpp](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/reo7sp/tgbot-cpp?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +[![Contact @reo7sp](https://img.shields.io/badge/telegram-contact-green.svg)](https://t.me/reo7sp) [![Donate using PayPal](https://img.shields.io/badge/donate-PayPal-brightgreen.svg)](https://paypal.me/reo7sp) -[![Donate using Yandex.Money](https://img.shields.io/badge/donate-Yandex.Money-brightgreen.svg)](https://money.yandex.ru/to/410011554060830) +[![Donate using Rocketbank](https://img.shields.io/badge/donate-Rocketbank-brightgreen.svg)](https://rocketbank.ru/reo7sp) + +--- + +[![GitHub contributors](https://img.shields.io/github/contributors/reo7sp/tgbot-cpp.svg)](https://github.com/reo7sp/tgbot-cpp/graphs/contributors)   🚀🚀🚀 thanks for the contributing! + +--- C++ library for Telegram bot API. Documentation is located [here](http://reo7sp.github.io/tgbot-cpp). +## State + +- [x] Bot API 3.0 / **_Invoice is not implemented._** +- [x] Bot API 3.1 +- [x] Bot API 3.2 +- [x] Bot API 3.3 +- [x] Bot API 3.4 +- [x] Bot API 3.5 / **_Invoice is not implemented._** +- [ ] Bot API 3.6 + ## Library compilation Firstly you need to install some dependencies such as Boost and build tools such as CMake. On Debian-based distibutives you can do it with these commands: diff --git a/docs/_api_8h.html b/docs/_api_8h.html index 2b6cfbc..bcffa0c 100644 --- a/docs/_api_8h.html +++ b/docs/_api_8h.html @@ -100,7 +100,9 @@ $(document).ready(function(){initNavTree('_api_8h.html','');}); #include "tgbot/types/Venue.h"
#include "tgbot/types/WebhookInfo.h"
#include "tgbot/types/ChatMember.h"
+#include "tgbot/types/StickerSet.h"
#include "tgbot/types/File.h"
+#include "tgbot/types/InputMedia.h"

Go to the source code of this file.

@@ -120,7 +122,7 @@ Namespaces
-Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Oleg Morozenkov
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a copy
5  * of this software and associated documentation files (the "Software"), to deal
6  * in the Software without restriction, including without limitation the rights
7  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8  * copies of the Software, and to permit persons to whom the Software is
9  * furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in all
12  * copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20  * SOFTWARE.
21  */
22 
23 #ifndef TGBOT_CPP_API_H
24 #define TGBOT_CPP_API_H
25 
26 #include <string>
27 #include <vector>
28 
29 #include <boost/property_tree/ptree.hpp>
30 
31 #include "tgbot/net/HttpReqArg.h"
32 #include "tgbot/types/User.h"
33 #include "tgbot/types/Message.h"
35 #include "tgbot/types/InputFile.h"
37 #include "tgbot/types/Update.h"
39 #include "tgbot/types/Venue.h"
41 #include "tgbot/types/ChatMember.h"
42 #include "tgbot/types/File.h"
43 
44 namespace TgBot {
45 
46 class Bot;
47 
52 class Api {
53 
54 typedef std::shared_ptr<std::vector<std::string>> StringArrayPtr;
55 
56 friend class Bot;
57 
58 public:
59  Api(const std::string& token);
60 
65  User::Ptr getMe() const;
66 
78  Message::Ptr sendMessage(int64_t chatId, const std::string& text, bool disableWebPagePreview = false, int32_t replyToMessageId = 0, const GenericReply::Ptr replyMarkup = GenericReply::Ptr(), const std::string& parseMode = "", bool disableNotification = false) const;
79 
88  Message::Ptr forwardMessage(int64_t chatId, int64_t fromChatId, int32_t messageId, bool disableNotification = false) const;
89 
100  Message::Ptr sendPhoto(int64_t chatId, const InputFile::Ptr photo, const std::string& caption = "", int32_t replyToMessageId = 0,
101  const GenericReply::Ptr replyMarkup = GenericReply::Ptr(), bool disableNotification = false) const;
102 
113  Message::Ptr sendPhoto(int64_t chatId, const std::string& photoId, const std::string& caption = "", int32_t replyToMessageId = 0,
114  const GenericReply::Ptr replyMarkup = GenericReply::Ptr(), bool disableNotification = false) const;
115 
129  Message::Ptr sendAudio(int64_t chatId, const InputFile::Ptr audio, const std::string &caption = "", int32_t duration = 0,
130  const std::string& performer = "", const std::string& title = "", int32_t replyToMessageId = 0,
131  const GenericReply::Ptr replyMarkup = GenericReply::Ptr(), bool disableNotification = false) const;
132 
146  Message::Ptr sendAudio(int64_t chatId, const std::string& audioId, const std::string &caption = "", int32_t duration = 0,
147  const std::string& performer = "", const std::string& title = "", int32_t replyToMessageId = 0,
148  const GenericReply::Ptr replyMarkup = GenericReply::Ptr(), bool disableNotification = false) const;
149 
160  Message::Ptr sendDocument(int64_t chatId, const InputFile::Ptr document, const std::string &caption = "", int32_t replyToMessageId = 0,
161  const GenericReply::Ptr replyMarkup = GenericReply::Ptr(), bool disableNotification = false) const;
162 
173  Message::Ptr sendDocument(int64_t chatId, const std::string& documentId, const std::string &caption = "", int32_t replyToMessageId = 0,
174  const GenericReply::Ptr replyMarkup = GenericReply::Ptr(), bool disableNotification = false) const;
175 
185  Message::Ptr sendSticker(int64_t chatId, const InputFile::Ptr sticker, int32_t replyToMessageId = 0,
186  const GenericReply::Ptr replyMarkup = GenericReply::Ptr(), bool disableNotification = false) const;
187 
197  Message::Ptr sendSticker(int64_t chatId, const std::string& stickerId, int32_t replyToMessageId = 0,
198  const GenericReply::Ptr replyMarkup = GenericReply::Ptr(), bool disableNotification = false) const;
199 
213  Message::Ptr sendVideo(int64_t chatId, const InputFile::Ptr video, int32_t duration = 0, int32_t width = 0, int32_t height = 0, const std::string &caption = "",
214  int32_t replyToMessageId = 0, const GenericReply::Ptr replyMarkup = GenericReply::Ptr(), bool disableNotification = false) const;
215 
229  Message::Ptr sendVideo(int64_t chatId, const std::string& videoId, int32_t duration = 0, int32_t width = 0, int32_t height = 0, const std::string &caption = "",
230  int32_t replyToMessageId = 0, const GenericReply::Ptr replyMarkup = GenericReply::Ptr(), bool disableNotification = false) const;
231 
243  Message::Ptr sendVoice(int64_t chatId, const InputFile::Ptr voice, const std::string &caption = "", int duration = 0, int32_t replyToMessageId = 0,
244  const GenericReply::Ptr replyMarkup = GenericReply::Ptr(), bool disableNotification = false) const;
245 
257  Message::Ptr sendVoice(int64_t chatId, const std::string& voiceId, const std::string &caption = "", int duration = 0, int32_t replyToMessageId = 0,
258  const GenericReply::Ptr replyMarkup = GenericReply::Ptr(), bool disableNotification = false) const;
259 
270  Message::Ptr sendLocation(int64_t chatId, float latitude, float longitude, int32_t replyToMessageId = 0,
271  const GenericReply::Ptr replyMarkup = GenericReply::Ptr(), bool disableNotification = false) const;
272 
286  Message::Ptr sendVenue(int64_t chatId, float latitude, float longitude, std::string title, std::string address, std::string foursquareId = "",
287  bool disableNotification = false, int32_t replyToMessageId = 0, const GenericReply::Ptr replyMarkup = GenericReply::Ptr()) const;
288 
300  Message::Ptr sendContact(int64_t chatId, std::string phoneNumber, std::string firstName, std::string lastName = "", bool disableNotification = false,
301  int32_t replyToMessageId = 0, const GenericReply::Ptr replyMarkup = GenericReply::Ptr()) const;
302 
310  void sendChatAction(int64_t chatId, const std::string& action) const;
311 
319  UserProfilePhotos::Ptr getUserProfilePhotos(int32_t userId, int32_t offset = 0, int32_t limit = 100) const;
320 
326  File::Ptr getFile(const std::string &fileId) const;
327 
333  bool leaveChat(int64_t chatId) const;
334 
340  Chat::Ptr getChat(int64_t chatId) const;
341 
347  std::vector<ChatMember::Ptr> getChatAdministrators(int64_t chatId) const;
348 
354  int32_t getChatMembersCount(int64_t chatId) const;
355 
362  ChatMember::Ptr getChatMember(int64_t chatId, int32_t userId) const;
363 
373  bool answerCallbackQuery(const std::string & callbackQueryId, const std::string & text="", bool showAlert=false, const std::string &url="", int32_t cacheTime=0) const;
374 
386  Message::Ptr editMessageText(const std::string& text, int64_t chatId=0, int32_t messageId=0, const std::string& inlineMessageId="",
387  const std::string& parseMode = "", bool disableWebPagePreview = false, const GenericReply::Ptr replyMarkup = GenericReply::Ptr()) const;
388 
398  Message::Ptr editMessageCaption(int64_t chatId = 0, int32_t messageId = 0, const std::string& caption = "",
399  const std::string& inlineMessageId = "", const GenericReply::Ptr replyMarkup = GenericReply::Ptr()) const;
400 
409  Message::Ptr editMessageReplyMarkup(int64_t chatId = 0, int32_t messageId = 0, const std::string& inlineMessageId = "",
410  const GenericReply::Ptr replyMarkup = GenericReply::Ptr()) const;
411 
417  void deleteMessage(int64_t chatId, int32_t messageId) const;
418 
429  std::vector<Update::Ptr> getUpdates(int32_t offset = 0, int32_t limit = 100, int32_t timeout = 0, const StringArrayPtr &allowedUpdates = nullptr) const;
430 
439  void setWebhook(const std::string& url = "", const InputFile::Ptr certificate = nullptr, int32_t maxConnection = 40, const StringArrayPtr &allowedUpdates = nullptr) const;
440 
445  bool deleteWebhook() const;
446 
453 
466  bool answerInlineQuery(const std::string& inlineQueryId, const std::vector<InlineQueryResult::Ptr>& results,
467  int32_t cacheTime=300, bool isPersonal=false, const std::string& nextOffset="", const std::string& switchPmText="", const std::string& switchPmParameter="") const;
468 
475  bool kickChatMember(int64_t chatId, int32_t userId) const;
476 
483  bool unbanChatMember(int64_t chatId, int32_t userId) const;
484 
491  std::string downloadFile(const std::string& filePath, const std::vector<HttpReqArg>& args = std::vector<HttpReqArg>()) const;
492 
493 private:
494  boost::property_tree::ptree sendRequest(const std::string& method, const std::vector<HttpReqArg>& args = std::vector<HttpReqArg>()) const;
495 
496  const std::string _token;
497 };
498 
499 }
500 
501 #endif //TGBOT_CPP_API_H
Chat::Ptr getChat(int64_t chatId) const
-
Message::Ptr sendVenue(int64_t chatId, float latitude, float longitude, std::string title, std::string address, std::string foursquareId="", bool disableNotification=false, int32_t replyToMessageId=0, const GenericReply::Ptr replyMarkup=GenericReply::Ptr()) const
-
Message::Ptr sendLocation(int64_t chatId, float latitude, float longitude, int32_t replyToMessageId=0, const GenericReply::Ptr replyMarkup=GenericReply::Ptr(), bool disableNotification=false) const
+Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Oleg Morozenkov
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a copy
5  * of this software and associated documentation files (the "Software"), to deal
6  * in the Software without restriction, including without limitation the rights
7  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8  * copies of the Software, and to permit persons to whom the Software is
9  * furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in all
12  * copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20  * SOFTWARE.
21  */
22 
23 #ifndef TGBOT_CPP_API_H
24 #define TGBOT_CPP_API_H
25 
26 #include <string>
27 #include <vector>
28 
29 #include <boost/property_tree/ptree.hpp>
30 
31 #include "tgbot/net/HttpReqArg.h"
32 #include "tgbot/types/User.h"
33 #include "tgbot/types/Message.h"
35 #include "tgbot/types/InputFile.h"
37 #include "tgbot/types/Update.h"
39 #include "tgbot/types/Venue.h"
41 #include "tgbot/types/ChatMember.h"
42 #include "tgbot/types/StickerSet.h"
43 #include "tgbot/types/File.h"
44 #include "tgbot/types/InputMedia.h"
45 
46 namespace TgBot {
47 
48 class Bot;
49 
54 class Api {
55 
56 typedef std::shared_ptr<std::vector<std::string>> StringArrayPtr;
57 
58 friend class Bot;
59 
60 public:
61  Api(const std::string& token);
62 
67  User::Ptr getMe() const;
68 
80  Message::Ptr sendMessage(int64_t chatId, const std::string& text, bool disableWebPagePreview = false, int32_t replyToMessageId = 0, const GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(), const std::string& parseMode = "", bool disableNotification = false) const;
81 
90  Message::Ptr forwardMessage(int64_t chatId, int64_t fromChatId, int32_t messageId, bool disableNotification = false) const;
91 
102  Message::Ptr sendPhoto(int64_t chatId, const InputFile::Ptr photo, const std::string& caption = "", int32_t replyToMessageId = 0,
103  const GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(), bool disableNotification = false) const;
104 
115  Message::Ptr sendPhoto(int64_t chatId, const std::string& photoId, const std::string& caption = "", int32_t replyToMessageId = 0,
116  const GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(), bool disableNotification = false) const;
117 
131  Message::Ptr sendAudio(int64_t chatId, const InputFile::Ptr audio, const std::string &caption = "", int32_t duration = 0,
132  const std::string& performer = "", const std::string& title = "", int32_t replyToMessageId = 0,
133  const GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(), bool disableNotification = false) const;
134 
148  Message::Ptr sendAudio(int64_t chatId, const std::string& audioId, const std::string &caption = "", int32_t duration = 0,
149  const std::string& performer = "", const std::string& title = "", int32_t replyToMessageId = 0,
150  const GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(), bool disableNotification = false) const;
151 
162  Message::Ptr sendDocument(int64_t chatId, const InputFile::Ptr document, const std::string &caption = "", int32_t replyToMessageId = 0,
163  const GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(), bool disableNotification = false) const;
164 
175  Message::Ptr sendDocument(int64_t chatId, const std::string& documentId, const std::string &caption = "", int32_t replyToMessageId = 0,
176  const GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(), bool disableNotification = false) const;
177 
187  Message::Ptr sendSticker(int64_t chatId, const InputFile::Ptr sticker, int32_t replyToMessageId = 0,
188  const GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(), bool disableNotification = false) const;
189 
199  Message::Ptr sendSticker(int64_t chatId, const std::string& stickerId, int32_t replyToMessageId = 0,
200  const GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(), bool disableNotification = false) const;
201 
207  StickerSet::Ptr getStickerSet(const std::string& name) const;
208 
215  File::Ptr uploadStickerFile(int32_t userId, const InputFile::Ptr pngSticker) const;
216 
228  bool createNewStickerSet(int32_t userId, const std::string& name, const std::string& title,
229  InputFile::Ptr pngSticker, const std::string& emojis, bool containsMasks = false, MaskPosition::Ptr maskPosition = nullptr) const;
230 
242  bool createNewStickerSet(int32_t userId, const std::string& name, const std::string& title,
243  const std::string& pngSticker, const std::string& emojis, bool containsMasks = false, MaskPosition::Ptr maskPosition = nullptr) const;
244 
255  bool addStickerToSet(int32_t userId, const std::string& name, const std::string& title,
256  InputFile::Ptr pngSticker, const std::string& emojis, MaskPosition::Ptr maskPosition = nullptr) const;
257 
268  bool addStickerToSet(int32_t userId, const std::string& name, const std::string& title,
269  const std::string& pngSticker, const std::string& emojis, MaskPosition::Ptr maskPosition = nullptr) const;
270 
277  bool setStickerPositionInSet(const std::string& sticker, uint32_t position) const;
278 
284  bool deleteStickerPositionInSet(const std::string& sticker) const;
285 
299  Message::Ptr sendVideo(int64_t chatId, const InputFile::Ptr video, int32_t duration = 0, int32_t width = 0, int32_t height = 0, const std::string& caption = "",
300  int32_t replyToMessageId = 0, const GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(), bool disableNotification = false) const;
301 
315  Message::Ptr sendVideo(int64_t chatId, const std::string& videoId, int32_t duration = 0, int32_t width = 0, int32_t height = 0, const std::string& caption = "",
316  int32_t replyToMessageId = 0, const GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(), bool disableNotification = false) const;
317 
329  Message::Ptr sendVideoNote(int64_t chatId, const InputFile::Ptr videoNote, int64_t replyToMessageId = 0, bool disableNotification = false,
330  int32_t duration = 0, int32_t length = 0, const GenericReply::Ptr replyMarkup = GenericReply::Ptr());
331 
343  Message::Ptr sendVideoNote(int64_t chatId, const std::string& videoNote, int64_t replyToMessageId = 0, bool disableNotification = false,
344  int32_t duration = 0, int32_t length = 0, const GenericReply::Ptr replyMarkup = GenericReply::Ptr());
345 
354  std::vector<Message::Ptr> sendMediaGroup(int64_t chatId, const std::vector<InputMedia::Ptr>& media,
355  bool disableNotification = false, int32_t replyToMessageId = 0) const;
356 
368  Message::Ptr sendVoice(int64_t chatId, const InputFile::Ptr voice, const std::string& caption = "", int duration = 0, int32_t replyToMessageId = 0,
369  const GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(), bool disableNotification = false) const;
370 
382  Message::Ptr sendVoice(int64_t chatId, const std::string& voiceId, const std::string& caption = "", int duration = 0, int32_t replyToMessageId = 0,
383  const GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(), bool disableNotification = false) const;
384 
396  Message::Ptr sendLocation(int64_t chatId, float latitude, float longitude, uint32_t livePeriod = 0,
397  int32_t replyToMessageId = 0, const GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(), bool disableNotification = false) const;
398 
409  Message::Ptr editMessageLiveLocation(float latitude, float longitude, int64_t chatId = 0, int32_t messageId = 0,
410  int32_t inlineMessageId = 0, const InlineKeyboardMarkup::Ptr replyMarkup = std::make_shared<InlineKeyboardMarkup>()) const;
411 
420  Message::Ptr stopMessageLiveLocation(int64_t chatId = 0, int32_t messageId = 0, int32_t inlineMessageId = 0,
421  const InlineKeyboardMarkup::Ptr replyMarkup = std::make_shared<InlineKeyboardMarkup>()) const;
422 
423 
437  Message::Ptr sendVenue(int64_t chatId, float latitude, float longitude, const std::string& title, const std::string& address, const std::string& foursquareId = "",
438  bool disableNotification = false, int32_t replyToMessageId = 0, const GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>()) const;
439 
451  Message::Ptr sendContact(int64_t chatId, const std::string& phoneNumber, const std::string& firstName, const std::string& lastName = "", bool disableNotification = false,
452  int32_t replyToMessageId = 0, const GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>()) const;
453 
461  void sendChatAction(int64_t chatId, const std::string& action) const;
462 
470  UserProfilePhotos::Ptr getUserProfilePhotos(int32_t userId, int32_t offset = 0, int32_t limit = 100) const;
471 
477  File::Ptr getFile(const std::string &fileId) const;
478 
484  bool leaveChat(int64_t chatId) const;
485 
491  Chat::Ptr getChat(int64_t chatId) const;
492 
498  std::vector<ChatMember::Ptr> getChatAdministrators(int64_t chatId) const;
499 
505  int32_t getChatMembersCount(int64_t chatId) const;
506 
513  ChatMember::Ptr getChatMember(int64_t chatId, int32_t userId) const;
514 
521  bool setChatStickerSet(int64_t chatId, const std::string& stickerSetName) const;
522 
528  bool deleteChatStickerSet(int64_t chatId) const;
529 
530 
540  bool answerCallbackQuery(const std::string & callbackQueryId, const std::string & text="", bool showAlert=false, const std::string &url="", int32_t cacheTime=0) const;
541 
553  Message::Ptr editMessageText(const std::string& text, int64_t chatId=0, int32_t messageId=0, const std::string& inlineMessageId="",
554  const std::string& parseMode = "", bool disableWebPagePreview = false, const GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>()) const;
555 
565  Message::Ptr editMessageCaption(int64_t chatId = 0, int32_t messageId = 0, const std::string& caption = "",
566  const std::string& inlineMessageId = "", const GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>()) const;
567 
576  Message::Ptr editMessageReplyMarkup(int64_t chatId = 0, int32_t messageId = 0, const std::string& inlineMessageId = "",
577  const GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>()) const;
578 
584  void deleteMessage(int64_t chatId, int32_t messageId) const;
585 
596  std::vector<Update::Ptr> getUpdates(int32_t offset = 0, int32_t limit = 100, int32_t timeout = 0, const StringArrayPtr &allowedUpdates = nullptr) const;
597 
606  void setWebhook(const std::string& url = "", const InputFile::Ptr certificate = nullptr, int32_t maxConnection = 40, const StringArrayPtr &allowedUpdates = nullptr) const;
607 
612  bool deleteWebhook() const;
613 
620 
633  bool answerInlineQuery(const std::string& inlineQueryId, const std::vector<InlineQueryResult::Ptr>& results,
634  int32_t cacheTime = 300, bool isPersonal = false, const std::string& nextOffset = "", const std::string& switchPmText = "", const std::string& switchPmParameter = "") const;
635 
643  bool kickChatMember(int64_t chatId, int32_t userId, uint64_t untilDate = 0) const;
644 
651  bool unbanChatMember(int64_t chatId, int32_t userId) const;
652 
664  bool restrictChatMember(int64_t chatId, int32_t userId, uint64_t untilDate = 0, bool canSendMessages = false,
665  bool canSendMediaMessages = false, bool canSendOtherMessages = false, bool canAddWebPagePreviews = false) const;
666 
681  bool promoteChatMember(int64_t chatId, int32_t userId, bool canChangeInfo = false, bool canPostMessages = false,
682  bool canEditMessages = false, bool canDeleteMessages = false, bool canInviteUsers = false, bool canPinMessages = false, bool canPromoteMembers = false) const;
683 
689  std::string exportChatInviteLink(int64_t chatId) const;
690 
698  bool setChatPhoto(int64_t chatId, const InputFile::Ptr photo) const;
699 
706  bool deleteChatPhoto(int64_t chatId) const;
707 
715  bool setChatTitle(int64_t chatId, const std::string& title) const;
716 
723  bool setChatDescription(int64_t chatId, const std::string& description) const;
724 
732  bool pinChatMessage(int64_t chatId, int32_t messageId, bool disableNotification = false) const;
733 
739  bool unpinChatMessage(int64_t chatId) const;
740 
741 
748  std::string downloadFile(const std::string& filePath, const std::vector<HttpReqArg>& args = std::vector<HttpReqArg>()) const;
749 
750 private:
751  boost::property_tree::ptree sendRequest(const std::string& method, const std::vector<HttpReqArg>& args = std::vector<HttpReqArg>()) const;
752 
753  const std::string _token;
754 };
755 
756 }
757 
758 #endif //TGBOT_CPP_API_H
Chat::Ptr getChat(int64_t chatId) const
+
Message::Ptr sendVideo(int64_t chatId, const InputFile::Ptr video, int32_t duration=0, int32_t width=0, int32_t height=0, const std::string &caption="", int32_t replyToMessageId=0, const GenericReply::Ptr replyMarkup=std::make_shared< GenericReply >(), bool disableNotification=false) const
+
std::shared_ptr< StickerSet > Ptr
Definition: StickerSet.h:41
std::shared_ptr< File > Ptr
Definition: File.h:24
+ +
Message::Ptr sendPhoto(int64_t chatId, const InputFile::Ptr photo, const std::string &caption="", int32_t replyToMessageId=0, const GenericReply::Ptr replyMarkup=std::make_shared< GenericReply >(), bool disableNotification=false) const
+
bool promoteChatMember(int64_t chatId, int32_t userId, bool canChangeInfo=false, bool canPostMessages=false, bool canEditMessages=false, bool canDeleteMessages=false, bool canInviteUsers=false, bool canPinMessages=false, bool canPromoteMembers=false) const
+
bool unpinChatMessage(int64_t chatId) const
std::string downloadFile(const std::string &filePath, const std::vector< HttpReqArg > &args=std::vector< HttpReqArg >()) const
std::vector< Update::Ptr > getUpdates(int32_t offset=0, int32_t limit=100, int32_t timeout=0, const StringArrayPtr &allowedUpdates=nullptr) const
File::Ptr getFile(const std::string &fileId) const
-
Definition: Api.h:44
+
bool setChatDescription(int64_t chatId, const std::string &description) const
+
Definition: Api.h:46
+
bool setChatTitle(int64_t chatId, const std::string &title) const
+
bool kickChatMember(int64_t chatId, int32_t userId, uint64_t untilDate=0) const
+
bool createNewStickerSet(int32_t userId, const std::string &name, const std::string &title, InputFile::Ptr pngSticker, const std::string &emojis, bool containsMasks=false, MaskPosition::Ptr maskPosition=nullptr) const
+
Message::Ptr sendContact(int64_t chatId, const std::string &phoneNumber, const std::string &firstName, const std::string &lastName="", bool disableNotification=false, int32_t replyToMessageId=0, const GenericReply::Ptr replyMarkup=std::make_shared< GenericReply >()) const
-
Message::Ptr sendMessage(int64_t chatId, const std::string &text, bool disableWebPagePreview=false, int32_t replyToMessageId=0, const GenericReply::Ptr replyMarkup=GenericReply::Ptr(), const std::string &parseMode="", bool disableNotification=false) const
+
bool addStickerToSet(int32_t userId, const std::string &name, const std::string &title, InputFile::Ptr pngSticker, const std::string &emojis, MaskPosition::Ptr maskPosition=nullptr) const
bool answerCallbackQuery(const std::string &callbackQueryId, const std::string &text="", bool showAlert=false, const std::string &url="", int32_t cacheTime=0) const
+
std::shared_ptr< InlineKeyboardMarkup > Ptr
-
Definition: Api.h:52
+
Message::Ptr sendSticker(int64_t chatId, const InputFile::Ptr sticker, int32_t replyToMessageId=0, const GenericReply::Ptr replyMarkup=std::make_shared< GenericReply >(), bool disableNotification=false) const
+
Definition: Api.h:54
+
bool setChatStickerSet(int64_t chatId, const std::string &stickerSetName) const
std::shared_ptr< Message > Ptr
Definition: Message.h:52
+ +
bool pinChatMessage(int64_t chatId, int32_t messageId, bool disableNotification=false) const
User::Ptr getMe() const
-
Message::Ptr sendVoice(int64_t chatId, const InputFile::Ptr voice, const std::string &caption="", int duration=0, int32_t replyToMessageId=0, const GenericReply::Ptr replyMarkup=GenericReply::Ptr(), bool disableNotification=false) const
+
bool deleteStickerPositionInSet(const std::string &sticker) const
void deleteMessage(int64_t chatId, int32_t messageId) const
+
bool deleteChatStickerSet(int64_t chatId) const
std::shared_ptr< UserProfilePhotos > Ptr
-
Message::Ptr editMessageText(const std::string &text, int64_t chatId=0, int32_t messageId=0, const std::string &inlineMessageId="", const std::string &parseMode="", bool disableWebPagePreview=false, const GenericReply::Ptr replyMarkup=GenericReply::Ptr()) const
std::shared_ptr< WebhookInfo > Ptr
Definition: WebhookInfo.h:20
-
Message::Ptr sendSticker(int64_t chatId, const InputFile::Ptr sticker, int32_t replyToMessageId=0, const GenericReply::Ptr replyMarkup=GenericReply::Ptr(), bool disableNotification=false) const
WebhookInfo::Ptr getWebhookInfo() const
@@ -115,30 +128,43 @@ $(document).ready(function(){initNavTree('_api_8h_source.html','');});
int32_t getChatMembersCount(int64_t chatId) const
std::shared_ptr< GenericReply > Ptr
Definition: GenericReply.h:37
+
Message::Ptr editMessageReplyMarkup(int64_t chatId=0, int32_t messageId=0, const std::string &inlineMessageId="", const GenericReply::Ptr replyMarkup=std::make_shared< GenericReply >()) const
std::shared_ptr< InputFile > Ptr
Definition: InputFile.h:39
Message::Ptr forwardMessage(int64_t chatId, int64_t fromChatId, int32_t messageId, bool disableNotification=false) const
-
std::shared_ptr< Chat > Ptr
Definition: Chat.h:38
-
bool kickChatMember(int64_t chatId, int32_t userId) const
+
Message::Ptr sendLocation(int64_t chatId, float latitude, float longitude, uint32_t livePeriod=0, int32_t replyToMessageId=0, const GenericReply::Ptr replyMarkup=std::make_shared< GenericReply >(), bool disableNotification=false) const
+
Message::Ptr sendAudio(int64_t chatId, const InputFile::Ptr audio, const std::string &caption="", int32_t duration=0, const std::string &performer="", const std::string &title="", int32_t replyToMessageId=0, const GenericReply::Ptr replyMarkup=std::make_shared< GenericReply >(), bool disableNotification=false) const
+
std::shared_ptr< Chat > Ptr
Definition: Chat.h:41
+
Message::Ptr sendVideoNote(int64_t chatId, const InputFile::Ptr videoNote, int64_t replyToMessageId=0, bool disableNotification=false, int32_t duration=0, int32_t length=0, const GenericReply::Ptr replyMarkup=GenericReply::Ptr())
+
Message::Ptr editMessageLiveLocation(float latitude, float longitude, int64_t chatId=0, int32_t messageId=0, int32_t inlineMessageId=0, const InlineKeyboardMarkup::Ptr replyMarkup=std::make_shared< InlineKeyboardMarkup >()) const
bool leaveChat(int64_t chatId) const
+
Message::Ptr sendDocument(int64_t chatId, const InputFile::Ptr document, const std::string &caption="", int32_t replyToMessageId=0, const GenericReply::Ptr replyMarkup=std::make_shared< GenericReply >(), bool disableNotification=false) const
void sendChatAction(int64_t chatId, const std::string &action) const
-
Message::Ptr editMessageCaption(int64_t chatId=0, int32_t messageId=0, const std::string &caption="", const std::string &inlineMessageId="", const GenericReply::Ptr replyMarkup=GenericReply::Ptr()) const
+
File::Ptr uploadStickerFile(int32_t userId, const InputFile::Ptr pngSticker) const
bool answerInlineQuery(const std::string &inlineQueryId, const std::vector< InlineQueryResult::Ptr > &results, int32_t cacheTime=300, bool isPersonal=false, const std::string &nextOffset="", const std::string &switchPmText="", const std::string &switchPmParameter="") const
ChatMember::Ptr getChatMember(int64_t chatId, int32_t userId) const
-
Message::Ptr editMessageReplyMarkup(int64_t chatId=0, int32_t messageId=0, const std::string &inlineMessageId="", const GenericReply::Ptr replyMarkup=GenericReply::Ptr()) const
-
Message::Ptr sendPhoto(int64_t chatId, const InputFile::Ptr photo, const std::string &caption="", int32_t replyToMessageId=0, const GenericReply::Ptr replyMarkup=GenericReply::Ptr(), bool disableNotification=false) const
-
Message::Ptr sendDocument(int64_t chatId, const InputFile::Ptr document, const std::string &caption="", int32_t replyToMessageId=0, const GenericReply::Ptr replyMarkup=GenericReply::Ptr(), bool disableNotification=false) const
+
bool setChatPhoto(int64_t chatId, const InputFile::Ptr photo) const
+
std::vector< Message::Ptr > sendMediaGroup(int64_t chatId, const std::vector< InputMedia::Ptr > &media, bool disableNotification=false, int32_t replyToMessageId=0) const
bool deleteWebhook() const
-
Message::Ptr sendAudio(int64_t chatId, const InputFile::Ptr audio, const std::string &caption="", int32_t duration=0, const std::string &performer="", const std::string &title="", int32_t replyToMessageId=0, const GenericReply::Ptr replyMarkup=GenericReply::Ptr(), bool disableNotification=false) const
+
std::shared_ptr< MaskPosition > Ptr
Definition: MaskPosition.h:38
+
bool deleteChatPhoto(int64_t chatId) const
Api(const std::string &token)
+
StickerSet::Ptr getStickerSet(const std::string &name) const
+
Message::Ptr sendVenue(int64_t chatId, float latitude, float longitude, const std::string &title, const std::string &address, const std::string &foursquareId="", bool disableNotification=false, int32_t replyToMessageId=0, const GenericReply::Ptr replyMarkup=std::make_shared< GenericReply >()) const
+
Message::Ptr sendVoice(int64_t chatId, const InputFile::Ptr voice, const std::string &caption="", int duration=0, int32_t replyToMessageId=0, const GenericReply::Ptr replyMarkup=std::make_shared< GenericReply >(), bool disableNotification=false) const
+
Message::Ptr sendMessage(int64_t chatId, const std::string &text, bool disableWebPagePreview=false, int32_t replyToMessageId=0, const GenericReply::Ptr replyMarkup=std::make_shared< GenericReply >(), const std::string &parseMode="", bool disableNotification=false) const
std::vector< ChatMember::Ptr > getChatAdministrators(int64_t chatId) const
-
Message::Ptr sendContact(int64_t chatId, std::string phoneNumber, std::string firstName, std::string lastName="", bool disableNotification=false, int32_t replyToMessageId=0, const GenericReply::Ptr replyMarkup=GenericReply::Ptr()) const
+
Message::Ptr stopMessageLiveLocation(int64_t chatId=0, int32_t messageId=0, int32_t inlineMessageId=0, const InlineKeyboardMarkup::Ptr replyMarkup=std::make_shared< InlineKeyboardMarkup >()) const
+
Message::Ptr editMessageCaption(int64_t chatId=0, int32_t messageId=0, const std::string &caption="", const std::string &inlineMessageId="", const GenericReply::Ptr replyMarkup=std::make_shared< GenericReply >()) const
+
bool restrictChatMember(int64_t chatId, int32_t userId, uint64_t untilDate=0, bool canSendMessages=false, bool canSendMediaMessages=false, bool canSendOtherMessages=false, bool canAddWebPagePreviews=false) const
UserProfilePhotos::Ptr getUserProfilePhotos(int32_t userId, int32_t offset=0, int32_t limit=100) const
-
Message::Ptr sendVideo(int64_t chatId, const InputFile::Ptr video, int32_t duration=0, int32_t width=0, int32_t height=0, const std::string &caption="", int32_t replyToMessageId=0, const GenericReply::Ptr replyMarkup=GenericReply::Ptr(), bool disableNotification=false) const
-
std::shared_ptr< ChatMember > Ptr
Definition: ChatMember.h:21
+
std::string exportChatInviteLink(int64_t chatId) const
+
std::shared_ptr< ChatMember > Ptr
Definition: ChatMember.h:22
void setWebhook(const std::string &url="", const InputFile::Ptr certificate=nullptr, int32_t maxConnection=40, const StringArrayPtr &allowedUpdates=nullptr) const
+
Message::Ptr editMessageText(const std::string &text, int64_t chatId=0, int32_t messageId=0, const std::string &inlineMessageId="", const std::string &parseMode="", bool disableWebPagePreview=false, const GenericReply::Ptr replyMarkup=std::make_shared< GenericReply >()) const
+
bool setStickerPositionInSet(const std::string &sticker, uint32_t position) const
std::shared_ptr< User > Ptr
Definition: User.h:38
@@ -147,7 +173,7 @@ $(document).ready(function(){initNavTree('_api_8h_source.html','');});
@@ -107,7 +108,7 @@ Namespaces
-Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Oleg Morozenkov
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a copy
5  * of this software and associated documentation files (the "Software"), to deal
6  * in the Software without restriction, including without limitation the rights
7  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8  * copies of the Software, and to permit persons to whom the Software is
9  * furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in all
12  * copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20  * SOFTWARE.
21  */
22 
23 #ifndef TGBOT_CPP_CHAT_H
24 #define TGBOT_CPP_CHAT_H
25 
26 #include <string>
27 #include <memory>
28 
29 namespace TgBot {
30 
35 class Chat {
36 
37 public:
38  typedef std::shared_ptr<Chat> Ptr;
39 
43  enum class Type {
45  };
46 
50  int64_t id;
51 
56 
60  std::string title;
61 
66  std::string username;
67 
72  std::string firstName;
73 
78  std::string lastName;
79 
85 };
86 
87 }
88 
89 #endif //TGBOT_CPP_CHAT_H
Type type
Definition: Chat.h:55
-
Definition: Api.h:44
+Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Oleg Morozenkov
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a copy
5  * of this software and associated documentation files (the "Software"), to deal
6  * in the Software without restriction, including without limitation the rights
7  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8  * copies of the Software, and to permit persons to whom the Software is
9  * furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in all
12  * copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20  * SOFTWARE.
21  */
22 
23 #ifndef TGBOT_CPP_CHAT_H
24 #define TGBOT_CPP_CHAT_H
25 
26 #include <string>
27 #include <memory>
28 
29 #include "tgbot/types/ChatPhoto.h"
30 
31 namespace TgBot {
32 
33 class Message;
38 class Chat {
39 
40 public:
41  typedef std::shared_ptr<Chat> Ptr;
42 
46  enum class Type {
48  };
49 
53  int64_t id;
54 
59 
63  std::string title;
64 
69  std::string username;
70 
75  std::string firstName;
76 
81  std::string lastName;
82 
88 
94 
99  std::string description;
100 
105  std::string inviteLink;
106 
111  std::shared_ptr<Message> pinnedMessage;
112 
117  std::string stickerSetName;
118 
124 };
125 
126 }
127 
128 #endif //TGBOT_CPP_CHAT_H
Type type
Definition: Chat.h:58
+ +
std::string stickerSetName
Definition: Chat.h:117
+
std::shared_ptr< Message > pinnedMessage
Definition: Chat.h:111
+
bool canSetStickerSet
Definition: Chat.h:123
+
Definition: Api.h:46
-
std::string firstName
Definition: Chat.h:72
-
bool allMembersAreAdministrators
Definition: Chat.h:84
- - +
std::string firstName
Definition: Chat.h:75
+
std::shared_ptr< ChatPhoto > Ptr
Definition: ChatPhoto.h:38
+
bool allMembersAreAdministrators
Definition: Chat.h:87
+ +
std::string inviteLink
Definition: Chat.h:105
+ -
int64_t id
Definition: Chat.h:50
-
std::shared_ptr< Chat > Ptr
Definition: Chat.h:38
-
std::string lastName
Definition: Chat.h:78
-
std::string title
Definition: Chat.h:60
+
int64_t id
Definition: Chat.h:53
+
ChatPhoto::Ptr photo
Definition: Chat.h:93
+
std::shared_ptr< Chat > Ptr
Definition: Chat.h:41
+
std::string description
Definition: Chat.h:99
+
std::string lastName
Definition: Chat.h:81
+
std::string title
Definition: Chat.h:63
-
std::string username
Definition: Chat.h:66
+
std::string username
Definition: Chat.h:69
-Go to the documentation of this file.
1 //
2 // Created by Konstantin Kukin on 26/12/16.
3 //
4 
5 #ifndef TGBOT_CHATMEMBER_H
6 #define TGBOT_CHATMEMBER_H
7 
8 #include <memory>
9 #include <string>
10 
11 #include "tgbot/types/User.h"
12 
13 namespace TgBot {
14 
19 class ChatMember {
20 public:
21  typedef std::shared_ptr<ChatMember> Ptr;
22 
27 
31  std::string status;
32 };
33 }
34 
35 #endif //TGBOT_CHATMEMBER_H
Definition: Api.h:44
- -
std::string status
Definition: ChatMember.h:31
-
User::Ptr user
Definition: ChatMember.h:26
+Go to the documentation of this file.
1 //
2 // Created by Konstantin Kukin on 26/12/16.
3 // Edit by JellyBrick on 27/05/18.
4 //
5 
6 #ifndef TGBOT_CHATMEMBER_H
7 #define TGBOT_CHATMEMBER_H
8 
9 #include <memory>
10 #include <string>
11 
12 #include "tgbot/types/User.h"
13 
14 namespace TgBot {
15 
20 class ChatMember {
21 public:
22  typedef std::shared_ptr<ChatMember> Ptr;
23 
28 
32  std::string status;
33 
37  uint64_t untilDate;
38 
42  bool canBeEdited = false;
43 
47  bool canChangeInfo = false;
48 
52  bool canPostMessages = false;
53 
57  bool canEditMessages = false;
58 
62  bool canDeleteMessages = false;
63 
67  bool canInviteUsers = false;
68 
72  bool canRestrictMembers = false;
73 
77  bool canPinMessages = false;
78 
82  bool canPromoteMembers = false;
83 
87  bool canSendMessages = false;
88 
92  bool canSendMediaMessages = false;
93 
97  bool canSendOtherMessages = false;
98 
102  bool canAddWebPagePreviews = false;
103 };
104 }
105 
106 #endif //TGBOT_CHATMEMBER_H
bool canSendOtherMessages
Definition: ChatMember.h:97
+ +
Definition: Api.h:46
+ +
bool canAddWebPagePreviews
Definition: ChatMember.h:102
+ + +
std::string status
Definition: ChatMember.h:32
+
bool canSendMediaMessages
Definition: ChatMember.h:92
+
User::Ptr user
Definition: ChatMember.h:27
+ +
bool canPromoteMembers
Definition: ChatMember.h:82
+ + +
bool canRestrictMembers
Definition: ChatMember.h:72
+
bool canDeleteMessages
Definition: ChatMember.h:62
-
std::shared_ptr< ChatMember > Ptr
Definition: ChatMember.h:21
+
std::shared_ptr< ChatMember > Ptr
Definition: ChatMember.h:22
+
uint64_t untilDate
Definition: ChatMember.h:37
+
std::shared_ptr< User > Ptr
Definition: User.h:38
@@ -96,7 +110,7 @@ $(document).ready(function(){initNavTree('_chat_member_8h_source.html','');});
+ + + + + +
+
tgbot-cpp +
+
+ + + + + + + + + +
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ChatPhoto.h File Reference
+
+
+
#include <memory>
+#include <string>
+
+

Go to the source code of this file.

+ + + + +

+Classes

class  TgBot::ChatPhoto
 
+ + + +

+Namespaces

 TgBot
 
+
+
+ + + + diff --git a/docs/_chat_photo_8h_source.html b/docs/_chat_photo_8h_source.html new file mode 100644 index 0000000..0b54fd0 --- /dev/null +++ b/docs/_chat_photo_8h_source.html @@ -0,0 +1,103 @@ + + + + + + + +tgbot-cpp: include/tgbot/types/ChatPhoto.h Source File + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
ChatPhoto.h
+
+
+Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Oleg Morozenkov
3  * Copyright (c) 2018 JellyBrick
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a copy
6  * of this software and associated documentation files (the "Software"), to deal
7  * in the Software without restriction, including without limitation the rights
8  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9  * copies of the Software, and to permit persons to whom the Software is
10  * furnished to do so, subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice shall be included in all
13  * copies or substantial portions of the Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21  * SOFTWARE.
22  */
23 
24 #ifndef TGBOT_CHATPHOTO_H
25 #define TGBOT_CHATPHOTO_H
26 
27 #include <memory>
28 #include <string>
29 
30 namespace TgBot {
31 
36 class ChatPhoto {
37 public:
38  typedef std::shared_ptr<ChatPhoto> Ptr;
39 
43  std::string smallFileId;
44 
48  std::string bigFileId;
49 };
50 }
51 
52 #endif //TGBOT_CHATPHOTO_H
+
Definition: Api.h:46
+
std::string bigFileId
Definition: ChatPhoto.h:48
+
std::string smallFileId
Definition: ChatPhoto.h:43
+
std::shared_ptr< ChatPhoto > Ptr
Definition: ChatPhoto.h:38
+
+
+ + + + diff --git a/docs/_chosen_inline_result_8h.html b/docs/_chosen_inline_result_8h.html index e68ba69..4872b4b 100644 --- a/docs/_chosen_inline_result_8h.html +++ b/docs/_chosen_inline_result_8h.html @@ -109,7 +109,7 @@ Namespaces