grammyjs / grammY

The Telegram Bot Framework.
https://grammy.dev
MIT License
2.37k stars 117 forks source link

Type Error in Context.me #637

Closed metavind closed 2 months ago

metavind commented 2 months ago

https://github.com/grammyjs/grammY/blob/48153f97840df5af0ce3706313d5052c370e0fce/src/context.ts#L404

When I pass the bot_info while creating the bot, then, in the context object, 'me' is of the following type: { ok: true, result: UserFromGetMe }

In this case, using ctx.me.${} gives a type error.