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

Telegram.Bot.API.Methods.CreateChatInviteLink

Synopsis

createChatInviteLink

data CreateChatInviteLinkRequest Source #

Request parameters for createChatInviteLink.

Constructors

CreateChatInviteLinkRequest 

Fields

Instances

Instances details
FromJSON CreateChatInviteLinkRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.CreateChatInviteLink

ToJSON CreateChatInviteLinkRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.CreateChatInviteLink

Generic CreateChatInviteLinkRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.CreateChatInviteLink

Associated Types

type Rep CreateChatInviteLinkRequest :: Type -> Type #

type Rep CreateChatInviteLinkRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.CreateChatInviteLink

type Rep CreateChatInviteLinkRequest = D1 ('MetaData "CreateChatInviteLinkRequest" "Telegram.Bot.API.Methods.CreateChatInviteLink" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "CreateChatInviteLinkRequest" 'PrefixI 'True) ((S1 ('MetaSel ('Just "createChatInviteLinkChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeChatId) :*: S1 ('MetaSel ('Just "createChatInviteLinkName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "createChatInviteLinkExpireDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer)) :*: (S1 ('MetaSel ('Just "createChatInviteLinkMemberLimit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "createChatInviteLinkCreatesJoinRequest") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))))

createChatInviteLink :: CreateChatInviteLinkRequest -> ClientM (Response ChatInviteLink) Source #

Use this method to create an additional invite link for a chat. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. The link can be revoked using the method revokeChatInviteLink. Returns the new invite link as ChatInviteLink object.