INNER CODE UNIT · TypeScript
botInfo
grammyjs/grammY · src/bot.ts:251
public set botInfo(botInfo: UserFromGetMe) {
this.me = botInfo;
}
public get botInfo(): UserFromGetMe {
if (this.me === undefined) {
throw new Error(
"Bot information unavailable! Make sure to call `await bot.init()` before accessing `bot.botInfo`!",
);
}
return this.me;
}
/**
* @inheritdoc
*/
override on<Q extends FilterQuery>(
filter: Q | Q[],
...middleware: Array<Middleware<Filter<C, Q>>>