telegram-bot-sdk icon indicating copy to clipboard operation
telegram-bot-sdk copied to clipboard

Laravel 8 Guzzle confilicts

Open realtebo opened this issue 3 years ago • 12 comments

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.

realtebo avatar Mar 19 '21 16:03 realtebo

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

L34T avatar Mar 21 '21 17:03 L34T

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

I'll try

realtebo avatar Mar 21 '21 19:03 realtebo

@L34T

thanks, it worked for me

alexp-ka avatar Mar 29 '21 23:03 alexp-ka

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

pr4gmat1q avatar Jul 29 '21 19:07 pr4gmat1q

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

Needs to be updated on the docs as it still says ^2.0

RhysLees avatar Aug 10 '21 10:08 RhysLees

composer require irazasyed/telegram-bot-sdk ^3.4.1

thanks you bro. it's working))

Sodiqmirzo avatar Aug 23 '21 11:08 Sodiqmirzo

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

It's working well, thank bro!

Chienle avatar Oct 04 '21 14:10 Chienle

thanks its working

imteajsajid12 avatar Oct 31 '21 15:10 imteajsajid12

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

Hi, I'm having the same issue and I've tried both solutions and they don't work. When I run composer require guzzlehttp/psr7 1.* It says 'zsh: no matches found: 1.*'

And the other solution by clearing the config doesn't work either. Anyone able to help me out? Thanks in advance :)

ab11bkr avatar Nov 01 '21 17:11 ab11bkr

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

Hi, I'm having the same issue and I've tried both solutions and they don't work. When I run composer require guzzlehttp/psr7 1.* It says 'zsh: no matches found: 1.*'

And the other solution by clearing the config doesn't work either. Anyone able to help me out? Thanks in advance :)

Add this to your composer.json "require":

"irazasyed/telegram-bot-sdk": "^3.4.1",
"guzzlehttp/psr7": "^1.3",

then run composer update

RhysLees avatar Nov 01 '21 18:11 RhysLees

Thank you very much, this worked perfectly.

ab11bkr avatar Nov 01 '21 19:11 ab11bkr

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

it worked!! thanks

SukhrobNuraliev avatar Dec 25 '21 14:12 SukhrobNuraliev

As mensioned in separate thread it is better to use the most actual version of sdk (documentation is not updated actually) by command without version:

composer require irazasyed/telegram-bot-sdk

dimaodnokoz avatar Dec 29 '22 20:12 dimaodnokoz

php artisan vendor:publish --provider="Telegram\Bot\Laravel\TelegramServiceProvider"

Thank you, that helped.

demix506 avatar Jan 26 '23 22:01 demix506