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.PinChatMessage

Synopsis

pinChatMessage

data PinChatMessageRequest Source #

Request parameters for pinChatMessage.

Constructors

PinChatMessageRequest 

Fields

Instances

Instances details
FromJSON PinChatMessageRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.PinChatMessage

ToJSON PinChatMessageRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.PinChatMessage

Generic PinChatMessageRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.PinChatMessage

Associated Types

type Rep PinChatMessageRequest :: Type -> Type #

type Rep PinChatMessageRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.PinChatMessage

type Rep PinChatMessageRequest = D1 ('MetaData "PinChatMessageRequest" "Telegram.Bot.API.Methods.PinChatMessage" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "PinChatMessageRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "pinChatMessageChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeChatId) :*: (S1 ('MetaSel ('Just "pinChatMessageMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageId) :*: S1 ('MetaSel ('Just "pinChatMessageDisableNotification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))))

pinChatMessage :: PinChatMessageRequest -> ClientM (Response Bool) Source #

Use this method to add a message to the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the can_pin_messages administrator right in a supergroup or can_edit_messages administrator right in a channel. Returns True on success.