Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncontrolled errors #2

Open
tn opened this issue Dec 13, 2019 · 0 comments
Open

Uncontrolled errors #2

tn opened this issue Dec 13, 2019 · 0 comments

Comments

@tn
Copy link

tn commented Dec 13, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant