editChatSubscriptionInviteLink¶
Returns: ChatInviteLink
- class aiogram.methods.edit_chat_subscription_invite_link.EditChatSubscriptionInviteLink(*, chat_id: int | str, invite_link: str, name: str | None = None, **extra_data: Any)[source]¶
Use this method to edit a subscription invite link created by the bot. The bot must have the can_invite_users administrator rights. Returns the edited invite link as a
aiogram.types.chat_invite_link.ChatInviteLink
object.Source: https://core.telegram.org/bots/api#editchatsubscriptioninvitelink
- chat_id: int | str¶
Unique identifier for the target chat or username of the target channel (in the format
@channelusername
)
- invite_link: str¶
The invite link to edit
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}¶
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_post_init(context: Any, /) None ¶
We need to both initialize private attributes and call the user-defined model_post_init method.
- name: str | None¶
Invite link name; 0-32 characters
Usage¶
As bot method¶
result: ChatInviteLink = await bot.edit_chat_subscription_invite_link(...)
Method as object¶
Imports:
from aiogram.methods.edit_chat_subscription_invite_link import EditChatSubscriptionInviteLink
alias:
from aiogram.methods import EditChatSubscriptionInviteLink
With specific bot¶
result: ChatInviteLink = await bot(EditChatSubscriptionInviteLink(...))
As reply into Webhook in handler¶
return EditChatSubscriptionInviteLink(...)