telegram-bot-simple-0.5.2: Easy to use library for building Telegram bots.
Safe HaskellNone
LanguageHaskell2010

Telegram.Bot.Simple.Reply

Synopsis

Documentation

currentChatId :: BotM (Maybe ChatId) Source #

Get current ChatId if possible.

data ReplyMessage Source #

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

Constructors

ReplyMessage 

Fields

Instances

Instances details
IsString ReplyMessage Source # 
Instance details

Defined in Telegram.Bot.Simple.Reply

Generic ReplyMessage Source # 
Instance details

Defined in Telegram.Bot.Simple.Reply

Associated Types

type Rep ReplyMessage :: Type -> Type #

type Rep ReplyMessage Source # 
Instance details

Defined in Telegram.Bot.Simple.Reply

type Rep ReplyMessage = D1 ('MetaData "ReplyMessage" "Telegram.Bot.Simple.Reply" "telegram-bot-simple-0.5.2-inplace" '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 "replyMessageEntities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [MessageEntity])) :*: S1 ('MetaSel ('Just "replyMessageDisableWebPagePreview") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "replyMessageDisableNotification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "replyMessageProtectContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "replyMessageReplyToMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MessageId)) :*: (S1 ('MetaSel ('Just "replyMessageAllowSendingWithoutReply") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "replyMessageReplyMarkup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SomeReplyMarkup)))))))

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).

replyText :: Text -> BotM () Source #

Reply with a text.