question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How do you reply to a reply?

See original GitHub issue

This userbot sends comments on new posts of channels

Users leave comments on comments section, but some of them reply to my userbot’s messages

I want the userbot to reply back to them too when that happens

Basically send them a reply in the comments section

Maybe my explanation is bad, but What I want to do is just Reply to a message in Replies dialog

...

// id of "Replies" dialog
const REPLIES_ID = "1271266957"

// handle incoming message
async function handle_new_message({ message }: NewMessageEvent) {
  try {
    // check if message from "Replies" dialog
    if (message.chatId.toString() === REPLIES_ID) {
      // reply to user in chat
      await client.sendMessage(message.peerId, { message: 'OK', replyTo: message })
    }
  } catch (err) {
    console.error(err)
  }
}

// listen for incoming messages
client.addEventHandler(handle_new_message, new Message({ incoming: true }))

... 

Instead I get an error saying

400: YOU_BLOCKED_USER (caused by messages.SendMessage)

As far as I know “Replies” dialog is a bot

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
painorcommented, May 11, 2022

That’s great, Sorry I couldn’t help but I’ve never tried the “Replies” feature of telegram…

1reaction
pheianoxcommented, May 11, 2022

This helped

entity: message.replyTo.replyToPeerId,
replyTo: message.fwdFrom.savedFromMsgId,
Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Respond to an Email | Indeed.com
How to write a response email · 1. Respond quickly · 2. Start with a greeting · 3. Reply to questions or concerns...
Read more >
Reply to or forward an email message - Microsoft Support
To reply to only the sender, select Reply. To reply to the original sender and all other recipients on the To and Cc...
Read more >
26 Example 'Thank You for Your Quick Response' Emails and ...
Thank you for your prompt response! I appreciate you getting this information to me so quickly. It will certainly help me and my...
Read more >
How to reply to people when I don't know what to reply - Quora
1. Try asking more questions based on topic and answer according to that when you are not sure or confident.
Read more >
3 Ways to Respond - wikiHow
1. Use casual language when you’re texting. Emails, letters, and even in-person conversations can take on a much more formal structure. Because of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found