rsf-telegramable
A class that can send and receive telegram messages, that has a clean and simple speak/listen API.
Works in concert with rsf-telegram-bot.
Installation
npm install --save rsf-telegramable
id
Formatting of The id
property of a person config should be like the following:
username
type
configuration
Associated In a person config, use type telegram
to specify a Telegramable
Telegramable Person Config Example
Usage
You must be running an instance of rsf-telegram-bot to connect to via websockets in order for the following to work. Say that is running on localhost, on port 3022...
const init shutdown Telegramable = const config = socketUrl: 'ws://localhost:3022'