Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(util/index): fix arg type & fn calls
It's crashes when calling functions with named parameters, there is no argument interface for the deleteMessage method in Telegraf framework so I changed it, and there's a telegram argument with the wrong type. ``` util/index.ts:283:20 - error TS2554: Expected 2 arguments, but got 1. 283 await telegram.deleteMessage({chat_id: channel!, message_id: Number(order.tg_channel_message1!)}); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/telegraf/typings/telegram.d.ts:317:44 317 deleteMessage(chatId: number | string, messageId: number): Promise<true>; ~~~~~~~~~~~~~~~~~ An argument for 'messageId' was not provided. Found 1 error in util/index.ts:283 ```
- Loading branch information