painor
painor
> @painor That worked! Thank you so much. Is there a place in the docs where I can send a PR to add the solution to the recipe? you can...
it happens randomly by telegram. email them for unban
You can use `buildReplyMarkup` ```ts import {Button} from "telegram"; // PS this function is not async const markup = client.buildReplyMarkup(Button.inline("Hello!")); await client.sendMessage(chat, { message: "click me!", buttons: markup, } ```...
Can you try doing this `const { Button } = require("telegram/tl/custom/button");`
Are you using a bot account? only bots can use buttons
if you want to use `uploadFile` you need to use the `CustomFile` class. you can also just use `sendFile` https://painor.gitbook.io/gramjs/getting-started/available-methods/uploading-files-1
> can you give an example if i want to send a file ? > > thanks a lot The link I sent you has an example.
are you able to reproduce them easily? I know about this issue it's just very hard to reproduce so trying to solve it is even harder. There were some fixes...
we need to keep pinging telegram or otherwise they will close the connection so there is a background task that pings once in a while. JS doesn't allow you to...
it shouldn't, it just tries to kill all senders/event listeners