Module
TelegramBot
- Package
- purescript-node-telegram-bot-api
- Repository
- justinwoo/purescript-node-telegram-bot-api
#TelegramEffects Source
type TelegramEffects e = (telegram :: TELEGRAM | e)#Message Source
newtype MessageThe Telegram Message type. See https://core.telegram.org/bots/api#message
Constructors
Message { chat :: Chat, date :: Int, from :: NullOrUndefined User, location :: NullOrUndefined Location, message_id :: Int, text :: NullOrUndefined String }
Instances
#User Source
newtype UserThe Telegram User type. See https://core.telegram.org/bots/api#user
Constructors
User { first_name :: NullOrUndefined String, id :: Int, last_name :: NullOrUndefined String, username :: NullOrUndefined String }
Instances
#Chat Source
newtype ChatThe Telegram Chat type. See https://core.telegram.org/bots/api#chat
Constructors
Chat { first_name :: NullOrUndefined String, id :: Int, last_name :: NullOrUndefined String, type :: String, username :: NullOrUndefined String }
Instances
#_sendMessage Source
_sendMessage :: forall e. Fn3 Bot Int String (Eff (TelegramEffects e) Unit)#sendMessage Source
sendMessage :: forall e. Bot -> Int -> String -> Eff (TelegramEffects e) Unit#_onMessage Source
_onMessage :: forall e. Fn2 Bot (Foreign -> Eff (TelegramEffects e) Unit) (Eff (TelegramEffects e) Unit)- Modules
- TelegramBot