-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hello,
thanks for this great project.
I have had some issues during making bot which was created with telegram-bot-now.
- If you define commands in BotFather, in group chats commands will called like
/cmd@mybot
. Commands doesn't work in this case. You need to definecmd@mybot
command in routes too. That's insane. - Any media attachment causes error:
An unexpected error has occurred. The bot /owner has been notified.
- Inviting bot to group causes error too. I think any non-text message causes error.
My server.js
look like:
const self = {
start: () => {
return 'Some text'
},
undefined: () => {
// hack: mute errors about invalid messages
return
},
cmd1,
cmd2,
cmd3,
cmd4,
'cmd1@mybot': cmd1,
'cmd2@mybot': cmd2,
'cmd3@mybot': cmd3,
'cmd4@mybot': cmd4,
MSG: {}
}
Any advice, solution?
Metadata
Metadata
Assignees
Labels
No labels