Skip to content

'sender' not correctly parsed #26

@JohannesFriedrich

Description

@JohannesFriedrich

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions