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

'sender' not correctly parsed #26

Open
JohannesFriedrich opened this issue Nov 9, 2018 · 0 comments
Open

'sender' not correctly parsed #26

JohannesFriedrich opened this issue Nov 9, 2018 · 0 comments

Comments

@JohannesFriedrich
Copy link

JohannesFriedrich commented Nov 9, 2018

In structure 'message' the key 'sender' is parsing no results, becauseroot["result"][0]["message"]["from"]["username"]; is not defined.

in Telegrambot.cpp line 50 has to be changed to
String sender = root["result"][0]["message"]["from"]["first_name"];

I will upload a Pull request.

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