-
在 Node.js 中抓取 Telegram 频道的数据可以通过使用 `Telethon` 的 JavaScript 等效库 `telegram` 和 `grammy` 实现。这些库允许我们与 Telegram 的 API 交互,获取频道的消息。下面是使用 `telegram` 和 `grammy` 的详细步骤。
### 方法一:使用 `telegram` 库
`telegram` 库…
-
### Description
Headers with 4 indents (`#### Name`) cannot be linked to by clicking the header anchor. This will scroll to the right position on mobile, but the URL will be set to the parent anchor.…
-
This link is not working
-
yarn add grammy-middlewares doesn't install source-map-support
-
![20240326_221906](https://github.com/grammyjs/website/assets/70066170/fe5515e1-94d5-4aee-b099-09b541c07cfd)
https://grammy.dev/ref/core/Context#getfile
-
https://github.com/grammyjs/grammY/blob/48153f97840df5af0ce3706313d5052c370e0fce/src/convenience/webhook.ts#L112-L117
A timing attack is when an attacker can infer information about a secret by mea…
-
The latest version is listed as `v1.11.2` rather than `v.1.12.0` when you visit https://deno.land/x/grammy@v1.12.0
![Screenshot 2022-11-07 at 08-45-53 grammy@v1 12 0 Deno](https://user-images.githu…
-
Breaks when used on [grammY](http://git.io/grammyjs).
```bash
git clone git@github.com:grammyjs/grammY.git
cd grammY/src
denodown mod.ts
```
results in
```
error: Uncaught (in promise) TypeE…
-
After #3 it should be trivial to implement pagination (both in message and in reply markup) on top of menus. We should consider adding this to the menu plugin.
We could also look into more complex …
-
```bash
yarn add @grammyjs/ratelimiter
yarn add https://github.com/grammyjs/grammY.git
```
```ts
import { Bot, Context } from 'grammy';
import { limit } from '@grammyjs/ratelimiter';
type Fro…