Skip to content

export Function

defaults ​

Sets the default values of the default object to the context

Constructor ​

ts
 defaults( _defaults, context, topLayer, force )
ParameterTypeDescription
_defaultsTThe default values.
context = {}anyThe context to replace with defaults.
topLayer?booleanPass true to ignore nested objects.
force?boolean

Return: T

A modern, powerful library for building your Telegram bots, with seamless support for both JavaScript and Typescript.