| Copyright | (c) Justus Adam 2017 |
|---|---|
| License | BSD3 |
| Maintainer | dev@justus.science |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Marvin.Adapter.Telegram.Poll
Description
- data TelegramAdapter updateType
- data Poll
- data TelegramChat = TelegramChat Integer ChatType (Maybe Text) (Maybe Text) (Maybe Text)
- data ChatType
- data TelegramUser = TelegramUser Integer Text (Maybe Text) (Maybe Text)
- class MkTelegram a
Documentation
data TelegramAdapter updateType Source #
The telegram adapter type for a particular update type. Either Push or Poll
Instances
| MkTelegram a => IsAdapter (TelegramAdapter a) Source # | |
| type User (TelegramAdapter a) Source # | |
| type Channel (TelegramAdapter a) Source # | |
Use the telegram API by fetching updates via HTTP
Instances
Chat type as defined by the telegram api
Constructors
| PrivateChat | |
| GroupChat | |
| SupergroupChat | |
| ChannelChat |
class MkTelegram a Source #
Class to enable polymorphism over update mechanics for TelegramAdapter
Minimal complete definition
mkEventGetter, mkAdapterId
Instances