messages.ExportChatInvite
- class pyrogram.raw.functions.messages.ExportChatInvite
Export an invite link for a chat
- Details:
Layer:
223ID:
A455DE90
- Parameters:
peer (
InputPeer) – Chatlegacy_revoke_permanent (
bool, optional) – Legacy flag, reproducing legacy behavior of this method: if set, revokes all previous links before creating a new one. Kept for bot API BC, should not be used by modern clients.request_needed (
bool, optional) – Whether admin confirmation is required before admitting each separate user into the chatexpire_date (
int32-bit, optional) – Expiration dateusage_limit (
int32-bit, optional) – Maximum number of users that can join using this linktitle (
str, optional) – Description of the invite link, visible only to administratorssubscription_pricing (
StarsSubscriptionPricing, optional) – For Telegram Star subscriptions », contains the pricing of the subscription the user must activate to join the private channel.
- Returns:
TL Schema
messages.exportChatInvite#a455de90
flags:#
legacy_revoke_permanent:flags.2?true
request_needed:flags.3?true
peer:InputPeer
expire_date:flags.0?int
usage_limit:flags.1?int
title:flags.4?string
subscription_pricing:flags.5?StarsSubscriptionPricing
= ExportedChatInvite
Parameter Tree
true (optional)true (optional)InputPeerInputPeerEmptyInputPeerSelfInputPeerChatlongInputPeerUserlonglongInputPeerChannellonglongInputPeerUserFromMessageInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageintlongInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageintlongint (optional)int (optional)string (optional)StarsSubscriptionPricing (optional)intlongExample
await app.invoke(
ExportChatInvite(
legacy_revoke_permanent=None,
request_needed=None,
peer=await app.resolve_peer(chat_id),
expire_date=0,
usage_limit=0,
title="text",
subscription_pricing=StarsSubscriptionPricing(
period=0,
amount=0
),
)
)