[BUG] "object Object" when running /chatinfo in DMs #48
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: ABOCN/TelegramBot#48
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Screenshot
@GiovaniFZ, since you said before you wanted to contribute more with the bot, feel free to fix this if you have time 😆
ok
This is happening due to the text parsing. I think one of the error strings is messed up or something as it affects the other commands too when an error occurs.
object Object
is the error object (which would contain an error message) which should be injected into the string instead of the entire error object.However, errors work differently depending on what part of the code it happens in, so something more advanced to catch and handle a variety of error types will be needed. I think TypeScript has been a great step in that process.