Muthu Kumar

Results 17 issues of Muthu Kumar

It has been a long-confusing feature of Telegraf that `ctx.reply` doesn't actually reply, but sends a message in the same chat. We now plan to fix it. This PR introduces...

* Hits Telegram's `getMe` endpoint on bot start, before `bot.launch()` * Stores the date header of `getMe`'s response * Marks any update older than the stored date with `ctx.oldUpdate =...

Added new export `"telegraf/update"`, used to narrow user contexts as such: ```TS import { Update, Message } from "telegraf/update"; interface MyCtx extends Context { session: { count: number } }...

Input helpers to create the InputFile object. ```TS import { Telegraf, Input } from "telegraf"; const bot = new Telegraf(token); bot.telegram.sendVideo(chatId, Input.fromLocalFile("../assets/cats.mp4")); bot.telegram.sendDocument(chatId, Input.fromBuffer(buf)); bot.command("cat", ctx => { return ctx.sendPhoto(Input.fromURL("https://funny-cats.example/cats.jpg"))...

Ref: [related conversation](https://t.me/TelegrafJSChat/83737) Formatting is often troublesome, especially if you have many characters that need escaping. Escaping is messy, and it is much cleaner to create entities instead, but there...

**Is your feature request related to a problem? Please describe.** Session has been deprecated for quite some time (#1372). While it may be appropriate, no satisfactory solution has been provided...

While not a critical issue, I found that in all examples I tried, one of the most common words used was "ll" according to the word cloud, owing to the...

New users of Telegraf often mistakenly write listeners within listeners like so: ```TS bot.command("form", async ctx => { await ctx.reply("Send first input"); bot.on("message", async ctx => { // ^^^ BUG!...

enhancement