npm i tgsnake
yarn add tgsnake
Changelog :
BREAKING CHANGES : if you don't have a string session please backup your session using Snake.save() when client is running.
• Change StoreSession to SnakeSession. it should be better than StoreSession. If it doesn't work properly, i will try to reusing StoreSession or try to make better soon. (I'll do my best with it)
• Add SnakeEvent. Now you can filter the update coming based a whitelist
chat or ignore update from blacklistchat
• Improve EntityCache. EntityCache now saved as json file in
[sessionName]/cache.json and automatic loaded when client is running.
• EntityCache now will cache from the new update event. (I'll do my best with
it)
• Improve login with bot. It should be not generate new session when previous session already saved in storeSession.
• Update javascript target from ES5 to ES2017
See Commits