AoiTelegram@0.4.0
Added
- Partial support for Telegram API
7.0added. functionErrorevent added to the command loader.CustomEventclass introduced for creating custom events based onEventEmitter.<LoadCommands>.loadVariablesmethod added to load variables from a folder.- Added chat/user ID verification (partial implementation).
- Added support for
suppressErrors($suppressErrors) in case of code errors (If set totruein options forsendMessageErrorandfunctionError,suppressErrorswill override them).
Fixes
- Typing of parameters in the
<AoiClient>.addFunctionmethod and internal library classes corrected. - Support for
@aoitelegram/databasefixed; code forTimeoutwas dependent ondatabase-sempai, which was not initially addressed, and support for the new DB should be present. - Fixed
sendMessageErroroption in theAoiClientclass constructor. <Context>.getAoiArgsmethod incorrectly returned theinsideparameter.- Parsing of objects in the
<Context>.evaluateArgsmethod fixed.
Updated
- Comments for the source code have been refined.
- Removed the use of
async/awaitfor methods in the@aoitelegram/databaselibrary (the library uses synchronous functions). - Parameter
lineis no longer required wherever needed in theMessageErrorclass. - Error messages are now more user-friendly, and the text of errors in
<Context>.checkArgumentTypeshas been reduced. - Changed the function loading from the library. Previously, functions were loaded when using commands/events, which took some time. Now, all functions will be loaded at the bot's start, significantly speeding up code execution when using commands/events.
AoiTelegram Function
- Numerous functions fixed, and several functions added. Only
$toStringand$availableParallelismwere removed. - Readability improved for external functions.