buildMessageContext needs to localize a context (implemented by the Bot’s I18n).
Properties
defaultLocale
ctx.lang (the bot re-resolves it inside the per-chat queue).
userKey
ctx.user key ctx.setLang() writes.
enabled
ctx.setLang() refuses otherwise.
Methods
supported()
code (itself or its base language), else undefined.
Parameters
Returns
string | undefined
translate()
Parameters
Returns
string