Safe Haskell | Safe-Inferred |
---|---|
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)
- data EditGeneralForumTopicRequest = EditGeneralForumTopicRequest {}
- type EditGeneralForumTopic = "editGeneralForumTopic" :> (ReqBody '[JSON] EditGeneralForumTopicRequest :> Post '[JSON] (Response Bool))
- editGeneralForumTopic :: EditGeneralForumTopicRequest -> ClientM (Response Bool)
- data CloseGeneralForumTopicRequest = CloseGeneralForumTopicRequest {}
- type CloseGeneralForumTopic = "closeGeneralForumTopic" :> (ReqBody '[JSON] CloseGeneralForumTopicRequest :> Post '[JSON] (Response Bool))
- closeGeneralForumTopic :: CloseGeneralForumTopicRequest -> ClientM (Response Bool)
- data ReopenGeneralForumTopicRequest = ReopenGeneralForumTopicRequest {}
- type ReopenGeneralForumTopic = "reopenGeneralForumTopic" :> (ReqBody '[JSON] ReopenGeneralForumTopicRequest :> Post '[JSON] (Response Bool))
- reopenGeneralForumTopic :: ReopenGeneralForumTopicRequest -> ClientM (Response Bool)
- data HideGeneralForumTopicRequest = HideGeneralForumTopicRequest {}
- type HideGeneralForumTopic = "hideGeneralForumTopic" :> (ReqBody '[JSON] HideGeneralForumTopicRequest :> Post '[JSON] (Response Bool))
- hideGeneralForumTopic :: HideGeneralForumTopicRequest -> ClientM (Response Bool)
- data UnhideGeneralForumTopicRequest = UnhideGeneralForumTopicRequest {}
- type UnhideGeneralForumTopic = "unhideGeneralForumTopic" :> (ReqBody '[JSON] UnhideGeneralForumTopicRequest :> Post '[JSON] (Response Bool))
- unhideGeneralForumTopic :: UnhideGeneralForumTopicRequest -> 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
ToJSON CloseForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum toJSON :: CloseForumTopicRequest -> Value # toEncoding :: CloseForumTopicRequest -> Encoding # toJSONList :: [CloseForumTopicRequest] -> Value # | |
Generic CloseForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep CloseForumTopicRequest :: Type -> Type # | |
type Rep CloseForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep CloseForumTopicRequest = D1 ('MetaData "CloseForumTopicRequest" "Telegram.Bot.API.Forum" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "CloseForumTopicRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "closeForumTopicChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeChatId) :*: S1 ('MetaSel ('Just "closeForumTopicMessageThreadId") '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
ToJSON ReopenForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum | |
Generic ReopenForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep ReopenForumTopicRequest :: Type -> Type # | |
type Rep ReopenForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep ReopenForumTopicRequest = D1 ('MetaData "ReopenForumTopicRequest" "Telegram.Bot.API.Forum" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "ReopenForumTopicRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "reopenForumTopicChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeChatId) :*: S1 ('MetaSel ('Just "reopenForumTopicMessageThreadId") '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
ToJSON DeleteForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum | |
Generic DeleteForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep DeleteForumTopicRequest :: Type -> Type # | |
type Rep DeleteForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep DeleteForumTopicRequest = D1 ('MetaData "DeleteForumTopicRequest" "Telegram.Bot.API.Forum" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "DeleteForumTopicRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "deleteForumTopicChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeChatId) :*: S1 ('MetaSel ('Just "deleteForumTopicMessageThreadId") '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
ToJSON UnpinAllForumTopicMessagesRequest Source # | |
Generic UnpinAllForumTopicMessagesRequest Source # | |
type Rep UnpinAllForumTopicMessagesRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep UnpinAllForumTopicMessagesRequest = D1 ('MetaData "UnpinAllForumTopicMessagesRequest" "Telegram.Bot.API.Forum" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "UnpinAllForumTopicMessagesRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "unpinAllForumTopicMessagesChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeChatId) :*: S1 ('MetaSel ('Just "unpinAllForumTopicMessagesMessageThreadId") '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.
editGeneralForumTopic
data EditGeneralForumTopicRequest Source #
EditGeneralForumTopicRequest | |
|
Instances
ToJSON EditGeneralForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum | |
Generic EditGeneralForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep EditGeneralForumTopicRequest :: Type -> Type # | |
type Rep EditGeneralForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep EditGeneralForumTopicRequest = D1 ('MetaData "EditGeneralForumTopicRequest" "Telegram.Bot.API.Forum" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "EditGeneralForumTopicRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "editGeneralForumTopicChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeChatId) :*: S1 ('MetaSel ('Just "editGeneralForumTopicName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
type EditGeneralForumTopic = "editGeneralForumTopic" :> (ReqBody '[JSON] EditGeneralForumTopicRequest :> Post '[JSON] (Response Bool)) Source #
editGeneralForumTopic :: EditGeneralForumTopicRequest -> ClientM (Response Bool) Source #
Use this method to edit the name of the General
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. Returns True
on success.
closeGeneralForumTopic
data CloseGeneralForumTopicRequest Source #
CloseGeneralForumTopicRequest | |
|
Instances
ToJSON CloseGeneralForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum | |
Generic CloseGeneralForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep CloseGeneralForumTopicRequest :: Type -> Type # | |
type Rep CloseGeneralForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep CloseGeneralForumTopicRequest = D1 ('MetaData "CloseGeneralForumTopicRequest" "Telegram.Bot.API.Forum" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "CloseGeneralForumTopicRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "closeGeneralForumTopicChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeChatId))) |
type CloseGeneralForumTopic = "closeGeneralForumTopic" :> (ReqBody '[JSON] CloseGeneralForumTopicRequest :> Post '[JSON] (Response Bool)) Source #
closeGeneralForumTopic :: CloseGeneralForumTopicRequest -> ClientM (Response Bool) Source #
Use this method to close an open General
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 True
on success.
reopenGeneralForumTopic
data ReopenGeneralForumTopicRequest Source #
ReopenGeneralForumTopicRequest | |
|
Instances
ToJSON ReopenGeneralForumTopicRequest Source # | |
Generic ReopenGeneralForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep ReopenGeneralForumTopicRequest :: Type -> Type # | |
type Rep ReopenGeneralForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep ReopenGeneralForumTopicRequest = D1 ('MetaData "ReopenGeneralForumTopicRequest" "Telegram.Bot.API.Forum" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "ReopenGeneralForumTopicRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "reopenGeneralForumTopicRequestChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeChatId))) |
type ReopenGeneralForumTopic = "reopenGeneralForumTopic" :> (ReqBody '[JSON] ReopenGeneralForumTopicRequest :> Post '[JSON] (Response Bool)) Source #
reopenGeneralForumTopic :: ReopenGeneralForumTopicRequest -> ClientM (Response Bool) Source #
Use this method to reopen a closed General
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. The topic will be automatically unhidden if it was hidden. Returns True
on success.
hideGeneralForumTopic
data HideGeneralForumTopicRequest Source #
HideGeneralForumTopicRequest | |
|
Instances
ToJSON HideGeneralForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum | |
Generic HideGeneralForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep HideGeneralForumTopicRequest :: Type -> Type # | |
type Rep HideGeneralForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep HideGeneralForumTopicRequest = D1 ('MetaData "HideGeneralForumTopicRequest" "Telegram.Bot.API.Forum" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "HideGeneralForumTopicRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "hideGeneralForumTopicChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeChatId))) |
type HideGeneralForumTopic = "hideGeneralForumTopic" :> (ReqBody '[JSON] HideGeneralForumTopicRequest :> Post '[JSON] (Response Bool)) Source #
hideGeneralForumTopic :: HideGeneralForumTopicRequest -> ClientM (Response Bool) Source #
Use this method to hide the General
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. The topic will be automatically closed if it was open. Returns True
on success.
unhideGeneralForumTopic
data UnhideGeneralForumTopicRequest Source #
UnhideGeneralForumTopicRequest | |
|
Instances
ToJSON UnhideGeneralForumTopicRequest Source # | |
Generic UnhideGeneralForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep UnhideGeneralForumTopicRequest :: Type -> Type # | |
type Rep UnhideGeneralForumTopicRequest Source # | |
Defined in Telegram.Bot.API.Forum type Rep UnhideGeneralForumTopicRequest = D1 ('MetaData "UnhideGeneralForumTopicRequest" "Telegram.Bot.API.Forum" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "UnhideGeneralForumTopicRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "unhideGeneralForumTopicChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeChatId))) |
type UnhideGeneralForumTopic = "unhideGeneralForumTopic" :> (ReqBody '[JSON] UnhideGeneralForumTopicRequest :> Post '[JSON] (Response Bool)) Source #
unhideGeneralForumTopic :: UnhideGeneralForumTopicRequest -> ClientM (Response Bool) Source #
Use this method to unhide the General
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 True
on success.