Chat.export_invite_link()
- async 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()- Parameters:
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.
- Returns:
str– On success, the exported invite link is returned.- Raises:
ValueError – In case the chat_id belongs to a user.