Closed
Description
🐞 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
.