Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property 'reply_to_message' does not exist on type 'New & NonChannel & Message'. #1437

Closed
jlubeck opened this issue Apr 17, 2021 · 1 comment

Comments

@jlubeck
Copy link

jlubeck commented Apr 17, 2021

Context

  • Telegraf.js Version: 4.3.0
  • Node.js Version: v15.14.0
  • Operating System: macOS

Minimal Example Code Reproducing the Issue

    bot.on('message', async (ctx) => {
        console.log(ctx.message.reply_to_message)
    })

Expected Behavior

reply_to_message should work

Current Behavior

Getting error Property 'reply_to_message' does not exist on type 'New & NonChannel & Message'.

Error Message and Logs (export DEBUG='telegraf:*')

Screen Shot 2021-04-17 at 2 10 23 PM

@wojpawlik
Copy link
Member

Duplicate of #1388

@wojpawlik wojpawlik marked this as a duplicate of #1388 Apr 18, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants