Telegram API-vendor / autoload.php

时间:2015-12-23 10:21:48

标签: php telegram-bot

我想在PHP中集成电报API。 我评论了以下链接   https://github.com/funcoding/TelegramPHPBot/blob/master/README.md
我在我的机器上安装了composer,但我无法生成 vendor / autoload.php文件。 我是新来的。任何人都可以给我解决方案。

2 个答案:

答案 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

  1. 下载master.zip个文件。将zip文件解压缩到您的本地wamp 服务器
  2. 打开cmd,然后使用wampcd wamp转到cd www目录。
  3. 然后使用Telegram API
  4. 转到cd Telegram API目录
  5. 然后从composer install
  6. 运行command prompt命令
  7. 现在,您可以在完成安装后在vendor目录中看到Telegram API文件夹。
  8. 无需修改composer.json文件。

    见下面的截图

    enter image description here

    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"
    }