editChatInviteLink¶
Returns: ChatInviteLink
- class litegram.methods.edit_chat_invite_link.EditChatInviteLink(*, chat_id: ChatIdUnion, invite_link: str, name: str | None = None, expire_date: DateTimeUnion | None = None, member_limit: int | None = None, creates_join_request: bool | None = None, **extra_data: Any)[source]¶
Use this method to edit a non-primary invite link created by the bot. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the edited invite link as a
litegram.types.chat_invite_link.ChatInviteLinkobject.Source: https://core.telegram.org/bots/api#editchatinvitelink
- chat_id: ChatIdUnion¶
Unique identifier for the target chat or username of the target channel (in the format
@channelusername)
Usage¶
As bot method¶
result: ChatInviteLink = await bot.edit_chat_invite_link(...)
Method as object¶
Imports:
from litegram.methods.edit_chat_invite_link import EditChatInviteLinkalias:
from litegram.methods import EditChatInviteLink
With specific bot¶
result: ChatInviteLink = await bot(EditChatInviteLink(...))
As reply into Webhook in handler¶
return EditChatInviteLink(...)