Replies: 1 comment
-
// this will give you the current chat
const chat = await ctx.getChat();
// this is the most recently pinned message
const pinned = chat.pinned_message;
await ctx.telegram.editMessageText(ctx.chat.id, pinned.message_id, undefined, "new message"); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any way to update already pinned message?
I tried default
editMessageText
but nothing changed for me.Beta Was this translation helpful? Give feedback.
All reactions