⭐ Just a small improvements and bugs fixed
❇️ Improvements
- All multi types now readable by Types class.
- Fix bugs refer to updates applied from v7.5 to v7.11 Telegram bot API.
💢 Bugs fixed
- Refer to Telegram bot API updates applied on version 1.0.2, Some types doesn't have any property because they have multi types in their structure so we added these multi types as property.
Example :
$tg = new Telegram(TOKEN, $updates);
$tg_methods = $tg->methods;
$tg_updates = $tg->updates;
$result = new Types($tg_methods->getChatMember(BOT_CHANNEL, $uid)
->_send());
// Before telegram multi types updates :
$member_status = $result->ChatMember()->status;
// From now :
$member_status = $result->ChatMember()->chatmembermember->status; //Other types can be replaced with "chatmembermember"