telegram-bot-simple-0.2.0: Easy to use library for building Telegram bots.

Safe HaskellNone
LanguageHaskell2010

Telegram.Bot.Simple.Reply

Synopsis

Documentation

currentChatId :: BotM (Maybe ChatId) #

Get current ChatId if possible.

data ReplyMessage #

Reply message parameters. This is just like SendMessageRequest but without SomeChatId specified.

Constructors

ReplyMessage 

Fields

Instances
IsString ReplyMessage # 
Instance details

Defined in Telegram.Bot.Simple.Reply

Generic ReplyMessage # 
Instance details

Defined in Telegram.Bot.Simple.Reply

Associated Types

type Rep ReplyMessage :: * -> * #

type Rep ReplyMessage # 
Instance details

Defined in Telegram.Bot.Simple.Reply

type Rep ReplyMessage = D1 (MetaData "ReplyMessage" "Telegram.Bot.Simple.Reply" "telegram-bot-simple-0.2.0-CzIJRSoNDaaG4f8wjjIbGm" False) (C1 (MetaCons "ReplyMessage" PrefixI True) ((S1 (MetaSel (Just "replyMessageText") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: (S1 (MetaSel (Just "replyMessageParseMode") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe ParseMode)) :*: S1 (MetaSel (Just "replyMessageDisableWebPagePreview") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool)))) :*: (S1 (MetaSel (Just "replyMessageDisableNotification") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "replyMessageReplyToMessageId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe MessageId)) :*: S1 (MetaSel (Just "replyMessageReplyMarkup") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe SomeReplyMarkup))))))

toReplyMessage :: Text -> ReplyMessage #

Create a ReplyMessage with just some Text message.

replyTo :: SomeChatId -> ReplyMessage -> BotM () #

Reply in a chat with a given SomeChatId.

reply :: ReplyMessage -> BotM () #

Reply in the current chat (if possible).

replyText :: Text -> BotM () #

Reply with a text.