Added a bunch of methods and documentation, file uploads are broken at the moment.

This commit is contained in:
Netkas 2023-02-14 23:26:41 -05:00
parent 34bcd7c1ef
commit 759928d63a
6 changed files with 239 additions and 15 deletions

View file

@ -12,6 +12,8 @@
if($update->getMessage() !== null && $update->getMessage()->getText() !== null)
{
print(sprintf("%s: %s", $update->getMessage()->getFrom()->getFirstName(), $update->getMessage()->getText()) . PHP_EOL);
$bot->sendMessage($update->getMessage()->getChat()->getId(), sprintf("Hello %s!", $update->getMessage()->getFrom()->getFirstName()));
$bot->sendPhoto($update->getMessage()->getChat()->getId(), 'https://git.n64.cc/uploads/-/system/appearance/header_logo/1/9d9bd13afce1a798d22ecfd9897730ed.gif');
}
}
}