Skip to the content.

TeleBot

Telegram Bot Framework for creating any bots

Created By Arash Abedi



Get user profile photos


# getUserProfilePhotos(array $params)

You can get user profile photos by calling getUserProfilePhotos() method.
You can pass parameters in array to this method


see getUserProfilePhotos parameters on telegram doc


# examples

<?php

namespace App\Controllers;

use App\Modules\ExampleModule;

class MessageHandler{

    public function run(){
        //$params=['param_name'=>'param_value']
            bot()->getUserProfilePhotos(['user_id'=>'username or chat_id ...']); //get user profile photos
    }
   
}