Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type GetForumTopicIconStickers = "getForumTopicIconStickers" :> Post '[JSON] (Response [Sticker])
- getForumTopicIconStickers :: ClientM (Response [Sticker])
- data CreateForumTopicRequest = CreateForumTopicRequest {}
- type CreateForumTopic = "createForumTopic" :> (ReqBody '[JSON] CreateForumTopicRequest :> Post '[JSON] (Response ForumTopic))
- createForumTopic :: CreateForumTopicRequest -> ClientM (Response ForumTopic)
- data EditForumTopicRequest = EditForumTopicRequest {}
- type EditForumTopic = "editForumTopic" :> (ReqBody '[JSON] EditForumTopicRequest :> Post '[JSON] (Response Bool))
- editForumTopic :: EditForumTopicRequest -> ClientM (Response Bool)
- data CloseForumTopicRequest = CloseForumTopicRequest {}
- type CloseForumTopic = "closeForumTopic" :> (ReqBody '[JSON] CloseForumTopicRequest :> Post '[JSON] (Response Bool))
- closeForumTopic :: CloseForumTopicRequest -> ClientM (Response Bool)
- data ReopenForumTopicRequest = ReopenForumTopicRequest {}
- type ReopenForumTopic = "reopenForumTopic" :> (ReqBody '[JSON] ReopenForumTopicRequest :> Post '[JSON] (Response Bool))
- reopenForumTopic :: ReopenForumTopicRequest -> ClientM (Response Bool)
- data DeleteForumTopicRequest = DeleteForumTopicRequest {}
- type DeleteForumTopic = "deleteForumTopic" :> (ReqBody '[JSON] DeleteForumTopicRequest :> Post '[JSON] (Response Bool))
- deleteForumTopic :: DeleteForumTopicRequest -> ClientM (Response Bool)
- data UnpinAllForumTopicMessagesRequest = UnpinAllForumTopicMessagesRequest {}
- type UnpinAllForumTopicMessages = "unpinAllForumTopicMessages" :> (ReqBody '[JSON] UnpinAllForumTopicMessagesRequest :> Post '[JSON] (Response Bool))
- unpinAllForumTopicMessages :: UnpinAllForumTopicMessagesRequest -> ClientM (Response Bool)
getForumTopicIconStickers
type GetForumTopicIconStickers = "getForumTopicIconStickers" :> Post '[JSON] (Response [Sticker]) Source #
getForumTopicIconStickers :: ClientM (Response [Sticker]) Source #
Use this method to get custom emoji stickers, which can be used as a forum topic icon by any user. Requires no parameters. Returns an '[Sticker]' objects.
createForumTopic
data CreateForumTopicRequest Source #
CreateForumTopicRequest | |
|
Instances
type CreateForumTopic = "createForumTopic" :> (ReqBody '[JSON] CreateForumTopicRequest :> Post '[JSON] (Response ForumTopic)) Source #
createForumTopic :: CreateForumTopicRequest -> ClientM (Response ForumTopic) Source #
Use this method to create a topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics
administrator rights. Returns information about the created topic as a ForumTopic
object.
editForumTopic
data EditForumTopicRequest Source #
EditForumTopicRequest | |
|
Instances
type EditForumTopic = "editForumTopic" :> (ReqBody '[JSON] EditForumTopicRequest :> Post '[JSON] (Response Bool)) Source #
editForumTopic :: EditForumTopicRequest -> ClientM (Response Bool) Source #
Use this method to edit name and icon of a topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have can_manage_topics
administrator rights, unless it is the creator of the topic. Returns True
on success.
closeForumTopic
data CloseForumTopicRequest Source #
CloseForumTopicRequest | |
|
Instances
Generic CloseForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep CloseForumTopicRequest :: Type -> Type # | |
ToJSON CloseForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum toJSON :: CloseForumTopicRequest -> Value toEncoding :: CloseForumTopicRequest -> Encoding toJSONList :: [CloseForumTopicRequest] -> Value toEncodingList :: [CloseForumTopicRequest] -> Encoding | |
type Rep CloseForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep CloseForumTopicRequest = D1 ('MetaData "CloseForumTopicRequest" "Telegram.Bot.API.Forum" "telegram-bot-simple-0.7-inplace" 'False) (C1 ('MetaCons "CloseForumTopicRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "closeForumTopicRequestChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeChatId) :*: S1 ('MetaSel ('Just "closeForumTopicRequestMessageThreadId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageThreadId))) |
type CloseForumTopic = "closeForumTopic" :> (ReqBody '[JSON] CloseForumTopicRequest :> Post '[JSON] (Response Bool)) Source #
closeForumTopic :: CloseForumTopicRequest -> ClientM (Response Bool) Source #
Use this method to close an open topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics
administrator rights, unless it is the creator of the topic. Returns True
on success.
reopenForumTopic
data ReopenForumTopicRequest Source #
ReopenForumTopicRequest | |
|
Instances
Generic ReopenForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep ReopenForumTopicRequest :: Type -> Type # | |
ToJSON ReopenForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum toJSON :: ReopenForumTopicRequest -> Value toEncoding :: ReopenForumTopicRequest -> Encoding toJSONList :: [ReopenForumTopicRequest] -> Value toEncodingList :: [ReopenForumTopicRequest] -> Encoding | |
type Rep ReopenForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep ReopenForumTopicRequest = D1 ('MetaData "ReopenForumTopicRequest" "Telegram.Bot.API.Forum" "telegram-bot-simple-0.7-inplace" 'False) (C1 ('MetaCons "ReopenForumTopicRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "reopenForumTopicRequestChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeChatId) :*: S1 ('MetaSel ('Just "reopenForumTopicRequestMessageThreadId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageThreadId))) |
type ReopenForumTopic = "reopenForumTopic" :> (ReqBody '[JSON] ReopenForumTopicRequest :> Post '[JSON] (Response Bool)) Source #
reopenForumTopic :: ReopenForumTopicRequest -> ClientM (Response Bool) Source #
Use this method to reopen a closed topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics
administrator rights, unless it is the creator of the topic. Returns True
on success.
deleteForumTopic
data DeleteForumTopicRequest Source #
DeleteForumTopicRequest | |
|
Instances
Generic DeleteForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep DeleteForumTopicRequest :: Type -> Type # | |
ToJSON DeleteForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum toJSON :: DeleteForumTopicRequest -> Value toEncoding :: DeleteForumTopicRequest -> Encoding toJSONList :: [DeleteForumTopicRequest] -> Value toEncodingList :: [DeleteForumTopicRequest] -> Encoding | |
type Rep DeleteForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep DeleteForumTopicRequest = D1 ('MetaData "DeleteForumTopicRequest" "Telegram.Bot.API.Forum" "telegram-bot-simple-0.7-inplace" 'False) (C1 ('MetaCons "DeleteForumTopicRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "deleteForumTopicRequestChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeChatId) :*: S1 ('MetaSel ('Just "deleteForumTopicRequestMessageThreadId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageThreadId))) |
type DeleteForumTopic = "deleteForumTopic" :> (ReqBody '[JSON] DeleteForumTopicRequest :> Post '[JSON] (Response Bool)) Source #
deleteForumTopic :: DeleteForumTopicRequest -> ClientM (Response Bool) Source #
Use this method to delete a forum topic along with all its messages in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_delete_messages
administrator rights. Returns True
on success.
unpinAllForumTopicMessages
data UnpinAllForumTopicMessagesRequest Source #
UnpinAllForumTopicMessagesRequest | |
|
Instances
Generic UnpinAllForumTopicMessagesRequest Source # | |
ToJSON UnpinAllForumTopicMessagesRequest Source # | |
Defined in Telegram.Bot.API.Forum toJSON :: UnpinAllForumTopicMessagesRequest -> Value toEncoding :: UnpinAllForumTopicMessagesRequest -> Encoding toJSONList :: [UnpinAllForumTopicMessagesRequest] -> Value toEncodingList :: [UnpinAllForumTopicMessagesRequest] -> Encoding | |
type Rep UnpinAllForumTopicMessagesRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep UnpinAllForumTopicMessagesRequest = D1 ('MetaData "UnpinAllForumTopicMessagesRequest" "Telegram.Bot.API.Forum" "telegram-bot-simple-0.7-inplace" 'False) (C1 ('MetaCons "UnpinAllForumTopicMessagesRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "unpinAllForumTopicMessagesRequestChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeChatId) :*: S1 ('MetaSel ('Just "unpinAllForumTopicMessagesRequestMessageThreadId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageThreadId))) |
type UnpinAllForumTopicMessages = "unpinAllForumTopicMessages" :> (ReqBody '[JSON] UnpinAllForumTopicMessagesRequest :> Post '[JSON] (Response Bool)) Source #
unpinAllForumTopicMessages :: UnpinAllForumTopicMessagesRequest -> ClientM (Response Bool) Source #
Use this method to clear the list of pinned messages in a forum topic. The bot must be an administrator in the chat for this to work and must have the can_pin_messages
administrator right in the supergroup. Returns True
on success.