Skip to content

Uncontrolled errors #2

@tn

Description

@tn

Hello,
thanks for this great project.

I have had some issues during making bot which was created with telegram-bot-now.

  1. 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 define cmd@mybot command in routes too. That's insane.
  2. Any media attachment causes error: An unexpected error has occurred. The bot /owner has been notified.
  3. 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions