Skip to the content.

TeleBot

Telegram Bot Framework for creating any bots

Created By Arash Abedi



Send VideoNote To Client


# sendVideoNote(array $params)

You can send video_note to your client by calling sendVideoNote() method.
You can pass parameters in array to this method


see sendVideoNote parameters on telegram doc


# examples

# Send video_note to current chat (user/channel/group)


for sending video_note to current chat, is not necessary to pass chat_id in send sendVideoNote parameters. It fill automatically by Bot class


<?php

namespace App\Controllers;

use App\Modules\ExampleModule;

class MessageHandler{

    public function run(){
        //$params=['param_name'=>'param_value']
            bot()->sendVideoNote(['video_note'=>'file_id or file_download_link']); //send video_note to current chat
    }
   
}



# Send video_note to specific chat (user/channel/group)


for sending video_note to specific chat you can pass chat_id in sendVideoNote parameters


<?php

namespace App\Controllers;

use App\Modules\ExampleModule;


class MessageHandler{

    public function run(){
        //$params=['param_name'=>'param_value']
            bot()->sendVideoNote(['chat_id'=>'785698365','video_note'=>'file_id or file_download_link']); //send video_note to specific chat by chat_id
    }
   
}