'editMessageReplyMarkup in Telegraf.js deletes all markup
I have this:
await ctx.editMessageReplyMarkup(ctx.chat_id, ctx.message_id, await keyboard.getPostInline(await db.getLikesCount(ctx.wizard.state.post.id), 1))
getPostInline:
async function getPostInline(likes_count, comments_count) {
return Markup.inlineKeyboard([
Markup.button.callback(`❤ ${likes_count}`, 'like'), Markup.button.callback(`💬 ${comments_count}`, 'comment')
]).oneTime().resize()
}
When editMessageReplyMarkup runs, all markup just disappears from message. I tried JSON.stringify, nothing works.
Solution 1:[1]
If you are using a forked version of discord.py, You can use the timeout function on the member object (new feature and is not supported by discord.py as it was discontinued) However, if you are on discord.py, you can assign and un-assign mute roles after grabbing the member object.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ash |
