PHP Classes

File: examples/edit.php

Recommend this page to a friend!
  Classes of Saeb Khanzadeh  >  Gap SDP API  >  examples/edit.php  >  Download  
File: examples/edit.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Gap SDP API
Send messages with the Gap instant messenger
Author: By
Last change:
Date: 3 years ago
Size: 270 bytes
 

Contents

Class file image Download
<?php

require dirname(__FILE__) . '/../vendor/autoload.php';

use
Gap\SDP\Api;

$token = {HERE YOUR TOKEN};

$gm = new Api($token);

$chat_id = {HERE CHAT ID};
$message_id = {HERE MESSAGE ID};

// edit text
$gm->editMessage($chat_id, $message_id, 'Hello world Again');

For more information send a message to info at phpclasses dot org.