Safe Haskell | None |
---|---|
Language | Haskell2010 |
Telegram.Bot.API.Forum
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 #
Constructors
CreateForumTopicRequest | |
Fields
|
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 #
Constructors
EditForumTopicRequest | |
Fields
|
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 #
Constructors
CloseForumTopicRequest | |
Fields
|
Instances
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 #
Constructors
ReopenForumTopicRequest | |
Fields
|
Instances
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 #
Constructors
DeleteForumTopicRequest | |
Fields
|
Instances
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 #
Constructors
UnpinAllForumTopicMessagesRequest | |
Fields
|
Instances
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.