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

[Docs]: Outdated code in Topics > Files #3

Closed
LWJerri opened this issue Feb 7, 2024 · 0 comments
Closed

[Docs]: Outdated code in Topics > Files #3

LWJerri opened this issue Feb 7, 2024 · 0 comments

Comments

@LWJerri
Copy link

LWJerri commented Feb 7, 2024

tg.on('new_message', async (msg) => {
    if (msg.media?.type === 'photo') {
        await tg.downloadToFile(msg.media) // <-- TS error
    }
})

image

@LWJerri LWJerri changed the title Outdated code in Topics > Files [Docs]: Outdated code in Topics > Files Feb 8, 2024
@teidesu teidesu transferred this issue from mtcute/mtcute Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant