Skip to content

null properties because of strtolower #1050

Closed
@enescakir

Description

@enescakir

🐞 Bug Report

Required Information

? !
Operating system Centos 7
PHP Telegram Bot version v1.1.1
PHP version 7.3.14
MySQL version none
Update Method Webhook
Self-signed certificate no
RAW update (if available) -

Summary

I am trying to get chat_id in a custom command.

$chatID = $this->getMessage()->getChat()->getId();

But it returns null for chat_id all the time if language is set to Turkish.

I tracked issue and strtolower('getId') returns getId in Turkish instead of getid in Entity class.

mb_strtolower('getId') workings corrects and returns getid.

Current behaviour

It returns null chat_id.

Expected behaviour

It should return chat_id.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions