Chat.export_invite_link()

Bound method export_invite_link of Chat.

Use as a shortcut for:

client.export_chat_invite_link(123456789)

Example

chat.export_invite_link()
  • subscription_period (int, optional) – Channel members only. Date when the subscription expires. for now, only 30 days is supported (30*24*60*60).

  • subscription_price (int, optional) – Channel members only. Price of the subscription in the smallest units of the currency.

str – On success, the exported invite link is returned.

ValueError – In case the chat_id belongs to a user.