tucnak / telebot

Telebot is a Telegram bot framework in Go.
MIT License
3.95k stars 461 forks source link

cache: feat cache contract and inmemory cache provider #677

Open rabikor opened 5 months ago

rabikor commented 5 months ago

The try to implement cache contract like was described in issue #287

The contract with cache was created to work with cache. To work with cache was added in memory provider and an example of middleware that stores context to cache.

Let's discuss if it could be included in a telebot package.