chore: deprecated .run method

This commit is contained in:
alina sireneva
2024-07-26 06:46:18 +03:00
parent dd87587708
commit 39199f9a5e
10 changed files with 20 additions and 25 deletions

View File

@@ -39,9 +39,8 @@ dp.onNewMessage(filters.chat('private'), async (msg) => {
await msg.replyText('hiiii from mtcute! 🌸')
})
tg.run({ /* optional params */ }, async (self) => {
console.log(`✨ logged in as ${self.displayName}`)
})
const self = await tg.start({ /* optional params */ }
console.log(`✨ logged in as ${self.displayName}`)
```
mtcute is a modern, performant and *✨ cute ✨* [mtproto](https://mtcute.dev/guide/intro/mtproto-vs-bot-api.html) library and bot framework,