我想在PHP中集成电报API。
我评论了以下链接
https://github.com/funcoding/TelegramPHPBot/blob/master/README.md
我在我的机器上安装了composer,但我无法生成
vendor / autoload.php文件。
我是新来的。任何人都可以给我解决方案。
答案 0 :(得分:0)
创建composer install
文件后运行vendor
命令以安装依赖项。这将创建一个autoload.php
文件夹,您可以在其中找到' Declare range to set to the first cell we find
Dim find as Range
set find = Range("A:A").Cells.Find(What:="TOOTHBRUSH BATT")
' This is the cell Address (in case it keeps looping back to beginning)
Dim addy as string
if not find is nothing then addy = find.address
' If we've found a cell then Keep Do something with it
Do while not find is nothing
find.Value = "BATTERY"
' Find the next Cell
set find = Range("A:A").Cells.Find(What:="TOOTHBRUSH BATT", After:= find)
' If the next found cell is the first one then exit sub/function
if find.address = addy then exit sub
Loop
文件。
答案 1 :(得分:0)
请按照以下步骤安装Telegram API
:
master.zip
个文件。将zip文件解压缩到您的本地wamp
服务器cmd
,然后使用wamp
和cd wamp
转到cd www
目录。Telegram API
cd Telegram API
目录
composer install
command prompt
命令
vendor
目录中看到Telegram API
文件夹。无需修改composer.json
文件。
见下面的截图
Composer.json 代码
{
"name": "curiouscoder/telegram-php-bot",
"description": "Telegram Bot API written in PHP",
"keywords": ["telegram-bot", "telegram", "bot", "api"],
"type": "library",
"require": {
"php": ">=5.4",
"guzzlehttp/guzzle": "5.3.0"
},
"require-dev": {
},
"autoload": {
"psr-4": {
"CuriousCoder\\TelegramBot\\": "src"
}
},
"license": "MIT",
"authors": [
{
"name": "Vinay Kumar",
"email": "vinaykumar1989@gmail.com",
"role": "Developer"
}
],
"minimum-stability": "dev"
}