Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- currentChatId :: BotM (Maybe ChatId)
- getEditMessageId :: BotM (Maybe EditMessageId)
- updateEditMessageId :: Update -> Maybe EditMessageId
- data ReplyMessage = ReplyMessage {
- replyMessageText :: Text
- replyMessageParseMode :: Maybe ParseMode
- replyMessageEntities :: Maybe [MessageEntity]
- replyMessageDisableWebPagePreview :: Maybe Bool
- replyMessageDisableNotification :: Maybe Bool
- replyMessageProtectContent :: Maybe Bool
- replyMessageReplyToMessageId :: Maybe MessageId
- replyMessageAllowSendingWithoutReply :: Maybe Bool
- 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 # |
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 #