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

Bad shorthand for context's replyWithVideo method #1687

Closed
Quite-Right opened this issue Sep 12, 2022 · 2 comments
Closed

Bad shorthand for context's replyWithVideo method #1687

Quite-Right opened this issue Sep 12, 2022 · 2 comments

Comments

@Quite-Right
Copy link

replyWithVideo(this: Context, ...args: Shorthand<'sendAudio'>) {
deprecate(
'ctx.replyWithVideo',
'reply',
'sendVideo',
'https://telegraf.js.org/experimental#new-reply'
)
return this.sendVideo(...args)
}

@Quite-Right
Copy link
Author

replyWithVideo(this: Context, ...args: Shorthand<'sendVideo'>) { deprecate( 'ctx.replyWithVideo', 'reply', 'sendVideo', 'https://telegraf.js.org/experimental#new-reply' ) return this.sendVideo(...args) }

@MKRhere
Copy link
Member

MKRhere commented Sep 13, 2022

Thanks!

@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