You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of switching between ctx and ctx.telegram/bot.telegram methods, it may be beneficial and fluent to only use Context methods. In v5, all Context methods must allow their implicit params to be overridden by extra.
Example:
// use current chatawaitctx.sendMessage("Hello!");// send message to another chatawaitctx.sendMessage("Hello!",{chat_id: -100xxxxxxxxx});
This feels more intuitive. This is a tracking issue for v5.
This proposal does not remove or endanger {bot|ctx}.telegram, it's purely additive.
The text was updated successfully, but these errors were encountered:
Instead of switching between ctx and ctx.telegram/bot.telegram methods, it may be beneficial and fluent to only use Context methods. In v5, all Context methods must allow their implicit params to be overridden by extra.
Example:
This feels more intuitive. This is a tracking issue for v5.
This proposal does not remove or endanger
{bot|ctx}.telegram
, it's purely additive.The text was updated successfully, but these errors were encountered: