该用户对象没有photo_id,那么有没有办法让用户的化身?
我正在制作一个基本的控制面板,用于使用PHP管理Bot。
基本上,我想显示向机器人发送消息的用户的个人资料图片/头像。
但是,用户对象没有photo_id,那么有没有办法获取用户的头像?
php telegram python-telegram-bot telegram-bot php-telegram-bot
我正在CMS与一起工作PHP OOP。在此项目中,有一项功能供用户添加新的电报频道。对于此功能,我添加了此表单,其中还包含操作代码:
<?php
if(isset($_POST['submit'])){
$token = $_POST['token'];
$cat = $_POST['cat'];
$ads = $_POST['ads'];
$key = $_POST['keyboard'];
$tel = new Telegram();
$notice = $tel->AddNew($token,$cat,$ads,$key);
}
?>
<div class='content-wrapper'>
<section class='content-header'>
<h1>
Add New Telegram Account
<small>You can add a new Telegram channel here</small>
</h1>
<ol class='breadcrumb'>
<li class='active'>telegram.php</li>
</ol>
</section>
<?php
if($dataSet->GetLevel()==1)
{ echo "
<section class='content'>
<div class='row'>
<div class='col-md-6'>
<div class='box box-primary'>
<div class='box-header with-border'>
<h3 class='box-title'>Required Information</h3>
</div>
";
if(isset($notice['success_message'])){
echo "
<div class='alert …Run Code Online (Sandbox Code Playgroud)