pashkevich-s-d/trainee-telegram-bot-client 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pashkevich-s-d/trainee-telegram-bot-client

最新稳定版本:0.0.2

Composer 安装命令:

composer require pashkevich-s-d/trainee-telegram-bot-client

包简介

Telegram bot client example

README 文档

README

Telegram bot client example

Description

This project can be used as an example of creating packages and installing them using composer.

It can be useful for those who are learning PHP and related technologies, or for those who are teaching students.

Example

Add current package:

composer require pashkevich-s-d/trainee-telegram-bot-client

Then:

use \PashkevichSD\TraineeTelegramBotClient\Service\TelegramBotClient;
use \PashkevichSD\TraineeTelegramBotClient\Model\Request\Message;

$telegramBotClient = new TelegramBotClient('YourTelegramBotToken');

To be able to get updates:

$telegramBotClient->getUpdates();

To be able to send message:

telegramBotClient->sendMessage((new Message())->setChatId($chatId)->setText($message));

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-02-07