telegram-bot-api-6.7: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Telegram.Bot.API.Methods.EditChatInviteLink

Synopsis

editChatInviteLink

data EditChatInviteLinkRequest Source #

Request parameters for editChatInviteLink.

Constructors

EditChatInviteLinkRequest 

Fields

Instances

Instances details
FromJSON EditChatInviteLinkRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.EditChatInviteLink

ToJSON EditChatInviteLinkRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.EditChatInviteLink

Generic EditChatInviteLinkRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.EditChatInviteLink

Associated Types

type Rep EditChatInviteLinkRequest :: Type -> Type #

type Rep EditChatInviteLinkRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.EditChatInviteLink

type Rep EditChatInviteLinkRequest = D1 ('MetaData "EditChatInviteLinkRequest" "Telegram.Bot.API.Methods.EditChatInviteLink" "telegram-bot-api-6.7-8B5O9jcStFh8aacJiwZZeM" 'False) (C1 ('MetaCons "EditChatInviteLinkRequest" 'PrefixI 'True) ((S1 ('MetaSel ('Just "editChatInviteLinkChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeChatId) :*: (S1 ('MetaSel ('Just "editChatInviteLinkInviteLink") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "editChatInviteLinkName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "editChatInviteLinkExpireDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer)) :*: (S1 ('MetaSel ('Just "editChatInviteLinkMemberLimit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "editChatInviteLinkCreatesJoinRequest") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))))

editChatInviteLink :: EditChatInviteLinkRequest -> ClientM (Response ChatInviteLink) 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 ChatInviteLink object.