Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- currentChatId :: BotM (Maybe ChatId)
- getEditMessageId :: BotM (Maybe EditMessageId)
- updateEditMessageId :: Update -> Maybe EditMessageId
- data ReplyMessage = ReplyMessage {
- replyMessageText :: Text
- replyMessageMessageThreadId :: Maybe MessageThreadId
- replyMessageParseMode :: Maybe ParseMode
- replyMessageEntities :: Maybe [MessageEntity]
- replyMessageLinkPreviewOptions :: Maybe LinkPreviewOptions
- replyMessageDisableNotification :: Maybe Bool
- replyMessageProtectContent :: Maybe Bool
- replyMessageReplyToMessageId :: Maybe MessageId
- replyMessageReplyParameters :: Maybe ReplyParameters
- replyMessageReplyMarkup :: Maybe SomeReplyMarkup
- toReplyMessage :: Text -> ReplyMessage
- replyMessageToSendMessageRequest :: SomeChatId -> ReplyMessage -> SendMessageRequest
- replyTo :: SomeChatId -> ReplyMessage -> BotM ()
- reply :: ReplyMessage -> BotM ()
- replyText :: Text -> BotM ()
- data EditMessage = EditMessage {}
- data EditMessageId
- toEditMessage :: Text -> EditMessage
- editMessageToEditMessageTextRequest :: EditMessageId -> EditMessage -> EditMessageTextRequest
- editMessageToReplyMessage :: EditMessage -> ReplyMessage
- editMessage :: EditMessageId -> EditMessage -> BotM ()
- editUpdateMessage :: EditMessage -> BotM ()
- editUpdateMessageText :: Text -> BotM ()
- replyOrEdit :: EditMessage -> BotM ()
Documentation
data ReplyMessage Source #
Reply message parameters.
This is just like SendMessageRequest
but without SomeChatId
specified.
ReplyMessage | |
|
Instances
toReplyMessage :: Text -> ReplyMessage Source #
Create a ReplyMessage
with just some Text
message.
replyTo :: SomeChatId -> ReplyMessage -> BotM () Source #
Reply in a chat with a given SomeChatId
.
reply :: ReplyMessage -> BotM () Source #
Reply in the current chat (if possible).
data EditMessage Source #
Instances
IsString EditMessage Source # | |
Defined in Telegram.Bot.Simple.Reply fromString :: String -> EditMessage # |
data EditMessageId Source #
toEditMessage :: Text -> EditMessage Source #
editMessageToEditMessageTextRequest :: EditMessageId -> EditMessage -> EditMessageTextRequest Source #
editMessage :: EditMessageId -> EditMessage -> BotM () Source #
editUpdateMessage :: EditMessage -> BotM () Source #
editUpdateMessageText :: Text -> BotM () Source #
replyOrEdit :: EditMessage -> BotM () Source #