telegram-badge 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -0
- package/README.ru.md +76 -3
- package/README.zh.md +22 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,8 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://github.com/chatman-media/telegram-badge/actions)
|
|
6
6
|
[](https://badge.fury.io/js/telegram-badge)
|
|
7
|
+
[](https://www.npmjs.com/package/telegram-badge)
|
|
8
|
+
[](https://bundlephobia.com/package/telegram-badge)
|
|
7
9
|
[](https://www.typescriptlang.org/)
|
|
8
10
|
[](https://opensource.org/licenses/MIT)
|
|
11
|
+
|
|
12
|
+
[](https://github.com/chatman-media/telegram-badge)
|
|
9
13
|
[](https://dev.to/chatman-media/show-your-telegram-group-member-count-in-github-readme-46pl)
|
|
10
14
|
[](https://x.com/chatman_media/status/1947399700795244694)
|
|
11
15
|
|
|
@@ -199,6 +203,24 @@ Build the project:
|
|
|
199
203
|
npm run build
|
|
200
204
|
```
|
|
201
205
|
|
|
206
|
+
## Subscribe
|
|
207
|
+
|
|
208
|
+
[](https://www.tiktok.com/@chatman.media)
|
|
209
|
+
[](https://www.twitch.tv/chatman1984)
|
|
210
|
+
[](https://www.youtube.com/@chatman-media)
|
|
211
|
+
[](https://t.me/alexanderkireyev)
|
|
212
|
+
[](https://x.com/chatman_media)
|
|
213
|
+
|
|
214
|
+
## Star History
|
|
215
|
+
|
|
216
|
+
<a href="https://www.star-history.com/#chatman-media/telegram-badge&Date">
|
|
217
|
+
<picture>
|
|
218
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=chatman-media/telegram-badge&type=Date&theme=dark" />
|
|
219
|
+
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=chatman-media/telegram-badge&type=Date" />
|
|
220
|
+
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=chatman-media/telegram-badge&type=Date" />
|
|
221
|
+
</picture>
|
|
222
|
+
</a>
|
|
223
|
+
|
|
202
224
|
## 🤝 Contributing
|
|
203
225
|
|
|
204
226
|
1. Fork the repository
|
package/README.ru.md
CHANGED
|
@@ -4,8 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://github.com/chatman-media/telegram-badge/actions)
|
|
6
6
|
[](https://badge.fury.io/js/telegram-badge)
|
|
7
|
+
[](https://www.npmjs.com/package/telegram-badge)
|
|
8
|
+
[](https://bundlephobia.com/package/telegram-badge)
|
|
7
9
|
[](https://www.typescriptlang.org/)
|
|
8
10
|
[](https://opensource.org/licenses/MIT)
|
|
11
|
+
|
|
12
|
+
[](https://github.com/chatman-media/telegram-badge)
|
|
9
13
|
[](https://dev.to/chatman-media/show-your-telegram-group-member-count-in-github-readme-46pl)
|
|
10
14
|
[](https://x.com/chatman_media/status/1947399700795244694)
|
|
11
15
|
|
|
@@ -155,8 +159,77 @@ https://telegram-badge.vercel.app/api/telegram-badge?logo=false
|
|
|
155
159
|
- 🆓 Бесплатно на Vercel при обычной нагрузке
|
|
156
160
|
- 📡 Можно расширить до отображения активности / количества сообщений
|
|
157
161
|
|
|
158
|
-
|
|
162
|
+
## 🔧 Использование API
|
|
163
|
+
|
|
164
|
+
### Как npm пакет:
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
npm install telegram-badge
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
```typescript
|
|
171
|
+
import badgeHandler from 'telegram-badge';
|
|
172
|
+
|
|
173
|
+
// Используйте в вашей serverless функции
|
|
174
|
+
export default badgeHandler;
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### Прямые вызовы API:
|
|
178
|
+
|
|
179
|
+
```typescript
|
|
180
|
+
GET /api/telegram-badge?style=flat&label=Участники&color=2AABEE&labelColor=555555
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
## 🧪 Тестирование
|
|
184
|
+
|
|
185
|
+
Запустить тесты:
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
npm test
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
Проверка типов:
|
|
159
192
|
|
|
160
|
-
|
|
193
|
+
```bash
|
|
194
|
+
npm run type-check
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
Сборка проекта:
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
npm run build
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
## Подписывайтесь
|
|
204
|
+
|
|
205
|
+
[](https://www.tiktok.com/@chatman.media)
|
|
206
|
+
[](https://www.twitch.tv/chatman1984)
|
|
207
|
+
[](https://www.youtube.com/@chatman-media)
|
|
208
|
+
[](https://t.me/alexanderkireyev)
|
|
209
|
+
[](https://x.com/chatman_media)
|
|
210
|
+
|
|
211
|
+
## История звёзд
|
|
212
|
+
|
|
213
|
+
<a href="https://www.star-history.com/#chatman-media/telegram-badge&Date">
|
|
214
|
+
<picture>
|
|
215
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=chatman-media/telegram-badge&type=Date&theme=dark" />
|
|
216
|
+
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=chatman-media/telegram-badge&type=Date" />
|
|
217
|
+
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=chatman-media/telegram-badge&type=Date" />
|
|
218
|
+
</picture>
|
|
219
|
+
</a>
|
|
220
|
+
|
|
221
|
+
## 🤝 Внести вклад
|
|
222
|
+
|
|
223
|
+
1. Форкните репозиторий
|
|
224
|
+
2. Создайте ветку для новой функции (`git checkout -b feature/amazing-feature`)
|
|
225
|
+
3. Зафиксируйте изменения (`git commit -m 'Add some amazing feature'`)
|
|
226
|
+
4. Отправьте ветку (`git push origin feature/amazing-feature`)
|
|
227
|
+
5. Откройте Pull Request
|
|
228
|
+
|
|
229
|
+
## 📜 Лицензия
|
|
230
|
+
|
|
231
|
+
Этот проект лицензирован под лицензией MIT - подробности в файле [LICENSE](LICENSE).
|
|
232
|
+
|
|
233
|
+
---
|
|
161
234
|
|
|
162
|
-
|
|
235
|
+
Сделано с ❤️ от [Chatman Media](https://github.com/chatman-media)
|
package/README.zh.md
CHANGED
|
@@ -4,8 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://github.com/chatman-media/telegram-badge/actions)
|
|
6
6
|
[](https://badge.fury.io/js/telegram-badge)
|
|
7
|
+
[](https://www.npmjs.com/package/telegram-badge)
|
|
8
|
+
[](https://bundlephobia.com/package/telegram-badge)
|
|
7
9
|
[](https://www.typescriptlang.org/)
|
|
8
10
|
[](https://opensource.org/licenses/MIT)
|
|
11
|
+
|
|
12
|
+
[](https://github.com/chatman-media/telegram-badge)
|
|
9
13
|
[](https://dev.to/chatman-media/show-your-telegram-group-member-count-in-github-readme-46pl)
|
|
10
14
|
[](https://x.com/chatman_media/status/1947399700795244694)
|
|
11
15
|
|
|
@@ -199,6 +203,24 @@ npm run type-check
|
|
|
199
203
|
npm run build
|
|
200
204
|
```
|
|
201
205
|
|
|
206
|
+
## 订阅
|
|
207
|
+
|
|
208
|
+
[](https://www.tiktok.com/@chatman.media)
|
|
209
|
+
[](https://www.twitch.tv/chatman1984)
|
|
210
|
+
[](https://www.youtube.com/@chatman-media)
|
|
211
|
+
[](https://t.me/alexanderkireyev)
|
|
212
|
+
[](https://x.com/chatman_media)
|
|
213
|
+
|
|
214
|
+
## 星标历史
|
|
215
|
+
|
|
216
|
+
<a href="https://www.star-history.com/#chatman-media/telegram-badge&Date">
|
|
217
|
+
<picture>
|
|
218
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=chatman-media/telegram-badge&type=Date&theme=dark" />
|
|
219
|
+
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=chatman-media/telegram-badge&type=Date" />
|
|
220
|
+
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=chatman-media/telegram-badge&type=Date" />
|
|
221
|
+
</picture>
|
|
222
|
+
</a>
|
|
223
|
+
|
|
202
224
|
## 🤝 贡献
|
|
203
225
|
|
|
204
226
|
1. Fork 本仓库
|