Telegram-bot-sdk: Laravel 8 Guzzle confilicts

Created on 19 Mar 2021  路  4Comments  路  Source: irazasyed/telegram-bot-sdk

When requiring package, i got

 Problem 1
    - Root composer.json requires irazasyed/telegram-bot-sdk 2.0 -> satisfiable by irazasyed/telegram-bot-sdk[v2.0.0].
    - irazasyed/telegram-bot-sdk v2.0.0 requires guzzlehttp/guzzle ~6.0 -> found guzzlehttp/guzzle[6.0.0, ..., 6.5.x-dev] but it conflicts with your root composer.json require (^7.0.1).

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Most helpful comment

@realtebo

  1. php artisan config:clear
    //del ./bootstrap/cache/* if you'll got error
  2. set TELEGRAM_BOT_TOKEN in .env
  3. composer require irazasyed/telegram-bot-sdk ^3.4.1

ps publish conf file with
php artisan vendor:publish --provider="Telegram\Bot\Laravel\TelegramServiceProvider"

All 4 comments

@realtebo

  1. php artisan config:clear
    //del ./bootstrap/cache/* if you'll got error
  2. set TELEGRAM_BOT_TOKEN in .env
  3. composer require irazasyed/telegram-bot-sdk ^3.4.1

ps publish conf file with
php artisan vendor:publish --provider="Telegram\Bot\Laravel\TelegramServiceProvider"

I will try thanks. But It was a new project, there was nothing into cache folder at that moment.

I'll try

@L34T

thanks, it worked for me

Laravel 8.52.0

Problem

 Problem 1
    - Root composer.json requires irazasyed/telegram-bot-sdk ^3.4.1 -> satisfiable by irazasyed/telegram-bot-sdk[v3.4.1].
    - irazasyed/telegram-bot-sdk v3.4.1 requires guzzlehttp/psr7 ^1.3 -> found guzzlehttp/psr7[1.3.0, ..., 1.x-dev] but the package is fixed to 2.0.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Solution

composer require guzzlehttp/psr7 1.*
composer require irazasyed/telegram-bot-sdk ^3.4.1
Was this page helpful?
0 / 5 - 0 ratings

Related issues

jobs2008 picture jobs2008  路  3Comments

Enelar picture Enelar  路  3Comments

b10585 picture b10585  路  4Comments

khalilst picture khalilst  路  3Comments

danilopinotti picture danilopinotti  路  3Comments