Skip to content

EasyTel v1.0.3

Latest
Compare
Choose a tag to compare
@es-taheri es-taheri released this 05 Nov 20:21
· 1 commit to PHP-MASTER since this release

⭐ 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"