telegram-bot-api-6.5: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellNone
LanguageHaskell2010

Telegram.Bot.API.Methods.EditChatInviteLink

Synopsis

editChatInviteLink

data EditChatInviteLinkRequest Source #

Request parameters for editChatInviteLink.

Constructors

EditChatInviteLinkRequest 

Fields

Instances

Instances details
Generic EditChatInviteLinkRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.EditChatInviteLink

Associated Types

type Rep EditChatInviteLinkRequest :: Type -> Type #

FromJSON EditChatInviteLinkRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.EditChatInviteLink

Methods

parseJSON :: Value -> Parser EditChatInviteLinkRequest

parseJSONList :: Value -> Parser [EditChatInviteLinkRequest]

ToJSON EditChatInviteLinkRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.EditChatInviteLink

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.5-inplace" '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))))))

type EditChatInviteLink = "editChatInviteLink" :> (ReqBody '[JSON] EditChatInviteLinkRequest :> Post '[JSON] (Response ChatInviteLink)) Source #

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.