hoangnamitc/tele-command

Support Telegram Command

v1.2 2024-01-09 08:51 UTC

This package is auto-updated.

Last update: 2024-04-23 14:20:57 UTC


README

composer require hoangnamitc/tele-command

Gửi tin nhắn

replyWithMessage

$result = $this->replyWithMessage([
    'text'       => $this->getDescription(),
    'parse_mode' => 'markdown',
]);

là Alias của

sendMessage()

Thêm thêm tại đây: sendMessage

@return Message

Xóa tin nhắn

  • Xóa tin của người gửi gần nhất
$this->deleteMess(
    $this->getChatId(),
    $this->getMessId()
);
  • Xóa tin của bot trả về, viết sau $result trên
$this->deleteMess(
    $this->getChatId(),
    data_get($result, 'message_id')
);