Skip to main content
Ctrl+K
Ctrl+K

Section Navigation

  • Banana API
    • Banana Basic Types
    • Banana Connectors
      • WinAPI-based connectors
      • cpr-based connectors
      • boost::beast-based connectors
  • Telegram API
    • Telegram Types
      • animation_t
      • audio_t
      • bot_command_t
      • callback_query_t
      • chat_location_t
      • chat_member_t
      • chat_permissions_t
      • chat_photo_t
      • chat_t
      • chosen_inline_result_t
      • contact_t
      • dice_t
      • document_t
      • encrypted_credentials_t
      • encrypted_passport_element_t
      • file_t
      • force_reply_t
      • game_high_score_t
      • game_t
      • inline_keyboard_button_t
      • inline_keyboard_markup_t
      • inline_query_result_article_t
      • inline_query_result_audio_t
      • inline_query_result_cached_audio_t
      • inline_query_result_cached_document_t
      • inline_query_result_cached_gif_t
      • inline_query_result_cached_mpeg4_gif_t
      • inline_query_result_cached_photo_t
      • inline_query_result_cached_sticker_t
      • inline_query_result_cached_video_t
      • inline_query_result_cached_voice_t
      • inline_query_result_contact_t
      • inline_query_result_document_t
      • inline_query_result_game_t
      • inline_query_result_gif_t
      • inline_query_result_location_t
      • inline_query_result_mpeg4_gif_t
      • inline_query_result_photo_t
      • inline_query_result_t
      • inline_query_result_venue_t
      • inline_query_result_video_t
      • inline_query_result_voice_t
      • inline_query_t
      • input_contact_message_content_t
      • input_location_message_content_t
      • input_media_animation_t
      • input_media_audio_t
      • input_media_document_t
      • input_media_photo_t
      • input_media_t
      • input_media_video_t
      • input_message_content_t
      • input_text_message_content_t
      • input_venue_message_content_t
      • invoice_t
      • keyboard_button_poll_type_t
      • keyboard_button_t
      • labeled_price_t
      • location_t
      • login_url_t
      • mask_position_t
      • message_entity_t
      • message_id_t
      • message_t
      • order_info_t
      • passport_data_t
      • passport_element_error_data_field_t
      • passport_element_error_file_t
      • passport_element_error_files_t
      • passport_element_error_front_side_t
      • passport_element_error_reverse_side_t
      • passport_element_error_selfie_t
      • passport_element_error_t
      • passport_element_error_translation_file_t
      • passport_element_error_translation_files_t
      • passport_element_error_unspecified_t
      • passport_file_t
      • photo_size_t
      • poll_answer_t
      • poll_option_t
      • poll_t
      • pre_checkout_query_t
      • proximity_alert_triggered_t
      • reply_keyboard_markup_t
      • reply_keyboard_remove_t
      • response_parameters_t
      • shipping_address_t
      • shipping_option_t
      • shipping_query_t
      • sticker_set_t
      • sticker_t
      • successful_payment_t
      • update_t
      • user_profile_photos_t
      • user_t
      • venue_t
      • video_note_t
      • video_t
      • voice_t
      • webhook_info_t
    • Telegram Methods
      • add_sticker_to_set
      • answer_callback_query
      • answer_inline_query
      • answer_pre_checkout_query
      • answer_shipping_query
      • copy_message
      • create_new_sticker_set
      • delete_chat_photo
      • delete_chat_sticker_set
      • delete_message
      • delete_sticker_from_set
      • delete_webhook
      • edit_message_caption
      • edit_message_live_location
      • edit_message_media
      • edit_message_reply_markup
      • edit_message_text
      • export_chat_invite_link
      • forward_message
      • get_chat
      • get_chat_administrators
      • get_chat_member
      • get_chat_members_count
      • get_file
      • get_game_high_scores
      • get_me
      • get_sticker_set
      • get_updates
      • get_user_profile_photos
      • kick_chat_member
      • leave_chat
      • pin_chat_message
      • promote_chat_member
      • restrict_chat_member
      • send_animation
      • send_audio
      • send_chat_action
      • send_contact
      • send_dice
      • send_document
      • send_game
      • send_invoice
      • send_location
      • send_media_group
      • send_message
      • send_photo
      • send_poll
      • send_sticker
      • send_venue
      • send_video
      • send_video_note
      • send_voice
      • set_chat_administrator_custom_title
      • set_chat_description
      • set_chat_permissions
      • set_chat_photo
      • set_chat_sticker_set
      • set_chat_title
      • set_game_score
      • set_my_commands
      • set_passport_data_errors
      • set_sticker_position_in_set
      • set_sticker_set_thumb
      • set_webhook
      • stop_message_live_location
      • stop_poll
      • unban_chat_member
      • unpin_all_chat_messages
      • unpin_chat_message
      • upload_sticker_file

Versions

  • v0.1.0
  • v0.2.0
  • master
  • .rst

export_chat_invite_link

Contents

  • export_chat_invite_link()
  • call()
  • export_chat_invite_link_args_t
    • export_chat_invite_link_args_t::chat_id

export_chat_invite_link#

template<class Connector>
api_result<string_t, Connector&&> export_chat_invite_link(Connector &&connector, export_chat_invite_link_args_t args)#
template<class Connector>
api_result<string_t, Connector&&> call(Connector &&connector, export_chat_invite_link_args_t args)#

connector is any object satisfying connector concept.

Use this method to generate a new invite link for a chat; any previously generated link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns the new invite link as String on success.

struct export_chat_invite_link_args_t#

Arguments that should be passed to export_chat_invite_link().

variant_t<integer_t, string_t> chat_id#

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

previous

edit_message_text

next

forward_message

Contents
  • export_chat_invite_link()
  • call()
  • export_chat_invite_link_args_t
    • export_chat_invite_link_args_t::chat_id

By Smertig

© Copyright 2020-2024.