Skip to content

Commit 449f03f

Browse files
feat: Remove bluebird + depd (#987)
* feat: Remove bluebird * docs: Update * remove depd ans use node native deprecate msg warnings * fix: correct util import name * remove: contributor dev dependencie and add list of contributors in the readme
1 parent d288751 commit 449f03f

File tree

10 files changed

+18
-557
lines changed

10 files changed

+18
-557
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,15 @@ Some things built using this library that might interest you:
9292
* [node-telegram-keyboard-wrapper](https://github.com/alexandercerutti/node-telegram-keyboard-wrapper): A wrapper to improve keyboards structures creation through a more easy-to-see way (supports Inline Keyboards, Reply Keyboard, Remove Keyboard and Force Reply)
9393
* [beetube-bot](https://github.com/kodjunkie/beetube-bot): A telegram bot for music, videos, movies, EDM tracks, torrent downloads, files and more.
9494

95+
96+
## Contributors
97+
98+
<p align="center">
99+
<a href="https://github.com/yagop/node-telegram-bot-api/graphs/contributors">
100+
<img src="https://contrib.rocks/image?repo=yagop/node-telegram-bot-api" />
101+
</a>
102+
</p>
103+
95104
## License
96105

97106
**The MIT License (MIT)**

doc/api.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ TelegramBot
123123
* _static_
124124
* [.errors](#TelegramBot.errors) : <code>Object</code>
125125
* [.messageTypes](#TelegramBot.messageTypes) : <code>[ &#x27;Array&#x27; ].&lt;String&gt;</code>
126-
* [.Promise](#TelegramBot.Promise)
127126

128127
<a name="new_TelegramBot_new"></a>
129128

@@ -1847,23 +1846,6 @@ The different errors the library uses.
18471846
The types of message updates the library handles.
18481847

18491848
**Kind**: static property of [<code>TelegramBot</code>](#TelegramBot)
1850-
<a name="TelegramBot.Promise"></a>
1851-
1852-
### TelegramBot.Promise
1853-
Change Promise library used internally, for all existing and new
1854-
instances.
1855-
1856-
**Kind**: static property of [<code>TelegramBot</code>](#TelegramBot)
1857-
1858-
| Param | Type |
1859-
| --- | --- |
1860-
| customPromise | <code>function</code> |
1861-
1862-
**Example**
1863-
```js
1864-
const TelegramBot = require('node-telegram-bot-api');
1865-
TelegramBot.Promise = myPromise;
1866-
```
18671849
* * *
18681850

18691851

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
const majorVersion = parseInt(process.versions.node.split('.')[0], 10);
77
if (majorVersion <= 5) {
8-
const deprecate = require('depd')('node-telegram-bot-api');
8+
const deprecate = require('./src/utils').deprecate;
99
deprecate('Node.js v5.x and below will no longer be supported in the future');
1010
module.exports = require('./lib/telegram');
1111
} else {

0 commit comments

Comments
 (0)