Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
документация litegram 1.0.10
Logo
документация litegram 1.0.10
  • Установка
  • Бот API
    • Бот
    • Client session
      • Use Custom API server
      • Base
      • httpx
      • Client session middlewares
    • Types
      • AcceptedGiftTypes
      • Animation
      • Audio
      • BackgroundFill
      • BackgroundFillFreeformGradient
      • BackgroundFillGradient
      • BackgroundFillSolid
      • BackgroundType
      • BackgroundTypeChatTheme
      • BackgroundTypeFill
      • BackgroundTypePattern
      • BackgroundTypeWallpaper
      • Birthdate
      • BotCommand
      • BotCommandScope
      • BotCommandScopeAllChatAdministrators
      • BotCommandScopeAllGroupChats
      • BotCommandScopeAllPrivateChats
      • BotCommandScopeChat
      • BotCommandScopeChatAdministrators
      • BotCommandScopeChatMember
      • BotCommandScopeDefault
      • BotDescription
      • BotName
      • BotShortDescription
      • BusinessBotRights
      • BusinessConnection
      • BusinessIntro
      • BusinessLocation
      • BusinessMessagesDeleted
      • BusinessOpeningHours
      • BusinessOpeningHoursInterval
      • CallbackQuery
      • Chat
      • ChatAdministratorRights
      • ChatBackground
      • ChatBoost
      • ChatBoostAdded
      • ChatBoostRemoved
      • ChatBoostSource
      • ChatBoostSourceGiftCode
      • ChatBoostSourceGiveaway
      • ChatBoostSourcePremium
      • ChatBoostUpdated
      • ChatFullInfo
      • ChatInviteLink
      • ChatJoinRequest
      • ChatLocation
      • ChatMember
      • ChatMemberAdministrator
      • ChatMemberBanned
      • ChatMemberLeft
      • ChatMemberMember
      • ChatMemberOwner
      • ChatMemberRestricted
      • ChatMemberUpdated
      • ChatPermissions
      • ChatPhoto
      • ChatShared
      • Checklist
      • ChecklistTask
      • ChecklistTasksAdded
      • ChecklistTasksDone
      • Contact
      • CopyTextButton
      • Dice
      • DirectMessagePriceChanged
      • DirectMessagesTopic
      • Document
      • ExternalReplyInfo
      • File
      • ForceReply
      • ForumTopic
      • ForumTopicClosed
      • ForumTopicCreated
      • ForumTopicEdited
      • ForumTopicReopened
      • GeneralForumTopicHidden
      • GeneralForumTopicUnhidden
      • Gift
      • GiftBackground
      • GiftInfo
      • Gifts
      • Giveaway
      • GiveawayCompleted
      • GiveawayCreated
      • GiveawayWinners
      • InaccessibleMessage
      • InlineKeyboardButton
      • InlineKeyboardMarkup
      • InputChecklist
      • InputChecklistTask
      • InputFile
      • InputMedia
      • InputMediaAnimation
      • InputMediaAudio
      • InputMediaDocument
      • InputMediaPhoto
      • InputMediaVideo
      • InputPaidMedia
      • InputPaidMediaPhoto
      • InputPaidMediaVideo
      • InputPollOption
      • InputProfilePhoto
      • InputProfilePhotoAnimated
      • InputProfilePhotoStatic
      • InputStoryContent
      • InputStoryContentPhoto
      • InputStoryContentVideo
      • KeyboardButton
      • KeyboardButtonPollType
      • KeyboardButtonRequestChat
      • KeyboardButtonRequestUser
      • KeyboardButtonRequestUsers
      • LinkPreviewOptions
      • Location
      • LocationAddress
      • LoginUrl
      • MaybeInaccessibleMessage
      • MenuButton
      • MenuButtonCommands
      • MenuButtonDefault
      • MenuButtonWebApp
      • Message
      • MessageAutoDeleteTimerChanged
      • MessageEntity
      • MessageId
      • MessageOrigin
      • MessageOriginChannel
      • MessageOriginChat
      • MessageOriginHiddenUser
      • MessageOriginUser
      • MessageReactionCountUpdated
      • MessageReactionUpdated
      • OwnedGift
      • OwnedGiftRegular
      • OwnedGiftUnique
      • OwnedGifts
      • PaidMedia
      • PaidMediaInfo
      • PaidMediaPhoto
      • PaidMediaPreview
      • PaidMediaVideo
      • PaidMessagePriceChanged
      • PhotoSize
      • Poll
      • PollAnswer
      • PollOption
      • ProximityAlertTriggered
      • ReactionCount
      • ReactionType
      • ReactionTypeCustomEmoji
      • ReactionTypeEmoji
      • ReactionTypePaid
      • ReplyKeyboardMarkup
      • ReplyKeyboardRemove
      • ReplyParameters
      • ResponseParameters
      • SharedUser
      • StarAmount
      • Story
      • StoryArea
      • StoryAreaPosition
      • StoryAreaType
      • StoryAreaTypeLink
      • StoryAreaTypeLocation
      • StoryAreaTypeSuggestedReaction
      • StoryAreaTypeUniqueGift
      • StoryAreaTypeWeather
      • SuggestedPostApprovalFailed
      • SuggestedPostApproved
      • SuggestedPostDeclined
      • SuggestedPostInfo
      • SuggestedPostPaid
      • SuggestedPostParameters
      • SuggestedPostPrice
      • SuggestedPostRefunded
      • SwitchInlineQueryChosenChat
      • TextQuote
      • UniqueGift
      • UniqueGiftBackdrop
      • UniqueGiftBackdropColors
      • UniqueGiftColors
      • UniqueGiftInfo
      • UniqueGiftModel
      • UniqueGiftSymbol
      • User
      • UserChatBoosts
      • UserProfilePhotos
      • UserRating
      • UserShared
      • UsersShared
      • Venue
      • Video
      • VideoChatEnded
      • VideoChatParticipantsInvited
      • VideoChatScheduled
      • VideoChatStarted
      • VideoNote
      • Voice
      • WebAppData
      • WebAppInfo
      • WriteAccessAllowed
      • ChosenInlineResult
      • InlineQuery
      • InlineQueryResult
      • InlineQueryResultArticle
      • InlineQueryResultAudio
      • InlineQueryResultCachedAudio
      • InlineQueryResultCachedDocument
      • InlineQueryResultCachedGif
      • InlineQueryResultCachedMpeg4Gif
      • InlineQueryResultCachedPhoto
      • InlineQueryResultCachedSticker
      • InlineQueryResultCachedVideo
      • InlineQueryResultCachedVoice
      • InlineQueryResultContact
      • InlineQueryResultDocument
      • InlineQueryResultGame
      • InlineQueryResultGif
      • InlineQueryResultLocation
      • InlineQueryResultMpeg4Gif
      • InlineQueryResultPhoto
      • InlineQueryResultVenue
      • InlineQueryResultVideo
      • InlineQueryResultVoice
      • InlineQueryResultsButton
      • InputContactMessageContent
      • InputInvoiceMessageContent
      • InputLocationMessageContent
      • InputMessageContent
      • InputTextMessageContent
      • InputVenueMessageContent
      • PreparedInlineMessage
      • SentWebAppMessage
      • AffiliateInfo
      • Invoice
      • LabeledPrice
      • OrderInfo
      • PaidMediaPurchased
      • PreCheckoutQuery
      • RefundedPayment
      • RevenueWithdrawalState
      • RevenueWithdrawalStateFailed
      • RevenueWithdrawalStatePending
      • RevenueWithdrawalStateSucceeded
      • ShippingAddress
      • ShippingOption
      • ShippingQuery
      • StarTransaction
      • StarTransactions
      • SuccessfulPayment
      • TransactionPartner
      • TransactionPartnerAffiliateProgram
      • TransactionPartnerChat
      • TransactionPartnerFragment
      • TransactionPartnerOther
      • TransactionPartnerTelegramAds
      • TransactionPartnerTelegramApi
      • TransactionPartnerUser
      • InputSticker
      • MaskPosition
      • Sticker
      • StickerSet
      • EncryptedCredentials
      • EncryptedPassportElement
      • PassportData
      • PassportElementError
      • PassportElementErrorDataField
      • PassportElementErrorFile
      • PassportElementErrorFiles
      • PassportElementErrorFrontSide
      • PassportElementErrorReverseSide
      • PassportElementErrorSelfie
      • PassportElementErrorTranslationFile
      • PassportElementErrorTranslationFiles
      • PassportElementErrorUnspecified
      • PassportFile
      • Update
      • WebhookInfo
      • CallbackGame
      • Game
      • GameHighScore
    • Methods
      • addStickerToSet
      • createNewStickerSet
      • deleteStickerFromSet
      • deleteStickerSet
      • getCustomEmojiStickers
      • getStickerSet
      • replaceStickerInSet
      • sendSticker
      • setCustomEmojiStickerSetThumbnail
      • setStickerEmojiList
      • setStickerKeywords
      • setStickerMaskPosition
      • setStickerPositionInSet
      • setStickerSetThumbnail
      • setStickerSetTitle
      • uploadStickerFile
      • answerCallbackQuery
      • approveChatJoinRequest
      • banChatMember
      • banChatSenderChat
      • close
      • closeForumTopic
      • closeGeneralForumTopic
      • convertGiftToStars
      • copyMessage
      • copyMessages
      • createChatInviteLink
      • createChatSubscriptionInviteLink
      • createForumTopic
      • declineChatJoinRequest
      • deleteBusinessMessages
      • deleteChatPhoto
      • deleteChatStickerSet
      • deleteForumTopic
      • deleteMyCommands
      • deleteStory
      • editChatInviteLink
      • editChatSubscriptionInviteLink
      • editForumTopic
      • editGeneralForumTopic
      • editStory
      • exportChatInviteLink
      • forwardMessage
      • forwardMessages
      • getAvailableGifts
      • getBusinessAccountGifts
      • getBusinessAccountStarBalance
      • getBusinessConnection
      • getChat
      • getChatAdministrators
      • getChatGifts
      • getChatMember
      • getChatMemberCount
      • getChatMenuButton
      • getFile
      • getForumTopicIconStickers
      • getMe
      • getMyCommands
      • getMyDefaultAdministratorRights
      • getMyDescription
      • getMyName
      • getMyShortDescription
      • getUserChatBoosts
      • getUserGifts
      • getUserProfilePhotos
      • giftPremiumSubscription
      • hideGeneralForumTopic
      • leaveChat
      • logOut
      • pinChatMessage
      • postStory
      • promoteChatMember
      • readBusinessMessage
      • removeBusinessAccountProfilePhoto
      • removeChatVerification
      • removeUserVerification
      • reopenForumTopic
      • reopenGeneralForumTopic
      • repostStory
      • restrictChatMember
      • revokeChatInviteLink
      • sendAnimation
      • sendAudio
      • sendChatAction
      • sendChecklist
      • sendContact
      • sendDice
      • sendDocument
      • sendGift
      • sendLocation
      • sendMediaGroup
      • sendMessage
      • sendMessageDraft
      • sendPaidMedia
      • sendPhoto
      • sendPoll
      • sendVenue
      • sendVideo
      • sendVideoNote
      • sendVoice
      • setBusinessAccountBio
      • setBusinessAccountGiftSettings
      • setBusinessAccountName
      • setBusinessAccountProfilePhoto
      • setBusinessAccountUsername
      • setChatAdministratorCustomTitle
      • setChatDescription
      • setChatMenuButton
      • setChatPermissions
      • setChatPhoto
      • setChatStickerSet
      • setChatTitle
      • setMessageReaction
      • setMyCommands
      • setMyDefaultAdministratorRights
      • setMyDescription
      • setMyName
      • setMyShortDescription
      • setUserEmojiStatus
      • transferBusinessAccountStars
      • transferGift
      • unbanChatMember
      • unbanChatSenderChat
      • unhideGeneralForumTopic
      • unpinAllChatMessages
      • unpinAllForumTopicMessages
      • unpinAllGeneralForumTopicMessages
      • unpinChatMessage
      • upgradeGift
      • verifyChat
      • verifyUser
      • approveSuggestedPost
      • declineSuggestedPost
      • deleteMessage
      • deleteMessages
      • editMessageCaption
      • editMessageChecklist
      • editMessageLiveLocation
      • editMessageMedia
      • editMessageReplyMarkup
      • editMessageText
      • stopMessageLiveLocation
      • stopPoll
      • answerInlineQuery
      • answerWebAppQuery
      • savePreparedInlineMessage
      • getGameHighScores
      • sendGame
      • setGameScore
      • answerPreCheckoutQuery
      • answerShippingQuery
      • createInvoiceLink
      • editUserStarSubscription
      • getMyStarBalance
      • getStarTransactions
      • refundStarPayment
      • sendInvoice
      • deleteWebhook
      • getUpdates
      • getWebhookInfo
      • setWebhook
      • setPassportDataErrors
    • Enums
      • BotCommandScopeType
      • ChatAction
      • ChatBoostSourceType
      • ChatMemberStatus
      • ChatType
      • ContentType
      • Currency
      • DiceEmoji
      • EncryptedPassportElement
      • InlineQueryResultType
      • InputMediaType
      • InputPaidMediaType
      • InputProfilePhotoType
      • InputStoryContentType
      • KeyboardButtonPollTypeType
      • MaskPositionPoint
      • MenuButtonType
      • MessageEntityType
      • MessageOriginType
      • OwnedGiftType
      • PaidMediaType
      • ParseMode
      • PassportElementErrorType
      • PollType
      • ReactionTypeType
      • RevenueWithdrawalStateType
      • StickerFormat
      • StickerType
      • StoryAreaTypeType
      • TopicIconColor
      • TransactionPartnerType
      • TransactionPartnerUserTransactionTypeEnum
      • UpdateType
    • Как скачать файл?
    • Как выгрузити файл?
    • Глобальные настройки
  • Обработка событий
    • Маршрутизатор
    • Диспетчер
    • Внедрение зависимостей
    • Фильтрация событий
      • Команды
      • Змина статуса пользователя в чати
      • ✨ Магични 🔮 фильтри ✨
      • MagicData
      • Фабрика миток зворотнього вызова и фильтрування
      • Помилки
    • Long-polling
    • Кинэтовий автомат (FSM)
      • Storages
      • Стратегия
      • Майcтер сцен
    • Middleware
    • Errors
    • Маркеры
    • Webhook
    • Обробники на основе класив
      • BaseHandler
      • CallbackQueryHandler
      • ChosenInlineResultHandler
      • ErrorHandler
      • InlineQueryHandler
      • MessageHandler
      • PollHandler
      • PreCheckoutQueryHandler
      • ShippingQueryHandler
      • ChatMemberHandler
  • Утилиты
    • Конструктор клавиатуры
    • Переклад
    • Отправитель действий в чате (Chat action sender)
    • Веб Приложение (WebApp)
    • Callback answer
    • Форматування
    • Media group builder
    • Deep Linking
    • Сериализация об’еки Telegram
  • Список изменений
  • Содействие разработке
Back to top
View this page

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)[исходный код]¶

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.ChatInviteLink object.

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)

invite_link: str¶

The invite link to edit

name: str | None¶

Invite link name; 0-32 characters

expire_date: DateTimeUnion | None¶

Point in time (Unix timestamp) when the link will expire

member_limit: int | None¶

The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999

creates_join_request: bool | None¶

True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can’t be specified

Usage¶

As bot method¶

result: ChatInviteLink = await bot.edit_chat_invite_link(...)

Method as object¶

Imports:

  • from litegram.methods.edit_chat_invite_link import EditChatInviteLink

  • alias: from litegram.methods import EditChatInviteLink

With specific bot¶

result: ChatInviteLink = await bot(EditChatInviteLink(...))

As reply into Webhook in handler¶

return EditChatInviteLink(...)

As shortcut from received object¶

  • litegram.types.chat.Chat.edit_invite_link()

Next
editChatSubscriptionInviteLink
Previous
deleteStory
Copyright © 2026, litegram Team
Made with Sphinx and @pradyunsg's Furo
On this page
  • editChatInviteLink
    • EditChatInviteLink
      • EditChatInviteLink.chat_id
      • EditChatInviteLink.invite_link
      • EditChatInviteLink.name
      • EditChatInviteLink.expire_date
      • EditChatInviteLink.member_limit
      • EditChatInviteLink.creates_join_request
    • Usage
      • As bot method
      • Method as object
        • With specific bot
        • As reply into Webhook in handler
      • As shortcut from received object