This package has been deprecated

Author message:

you should use a newer framework like grammY

telegrambotchatconfighandler

1.1.1 • Public • Published

telegramBotChatConfigHandler

new ChatConfigHandler(folder, [defaultConfigObject])

Safe all Files to the given folder. If a config is loaded without an existing file the defaultConfigObject will be returned instead.

chatConfigHandler.getAllConfigs()

Load all configs.

chatConfigHandler.loadConfig(chat)

config of the chat will be loaded from the folder. If the file does not exist the defaultConfigObject will be returned.

chatConfigHandler.saveConfig(chat, config)

A config object will be stored in the file of the chat.

chatConfigHandler.removeConfig(chat)

Remove the config of chat from the folder.

Readme

Keywords

none

Package Sidebar

Install

npm i telegrambotchatconfighandler

Weekly Downloads

1

Version

1.1.1

License

MIT

Last publish

Collaborators

  • edjopato