Skip to content
This repository was archived by the owner on Apr 15, 2023. It is now read-only.

First stable release 🎉

Choose a tag to compare

@PonomareVlad PonomareVlad released this 16 Mar 13:40
· 3 commits to main since this release

⚠️ This release contain breaking changes !

Please, review changes before updating this package

1. The format of arguments for some methods has changed

For method start()

start(bot) // before

start({bot}) // after

For method setWebhook()

setWebhook(bot, path) // before

setWebhook({bot, path}) // after

2. Added experimental support for Edge functions

TeleBot library do not have support for Edge runtime because it depends on node-fetch package, that uses Node specific APIs. But, we can replace this package by native Fetch implementation and publish forked package to NPM. So, while I work on this, I need to early support for Edge runtime in this package.

3. Added the option to skip and display API errors

For simplify prototyping and migration to Vercel environment, now you can skip throwing errors and pass it to function response with normal HTTP code (200)

Example of a project with current changes

Full Changelog: v0.0.2...v1.0.0