telegram-bot-sdk
telegram-bot-sdk copied to clipboard
Laravel 8 Guzzle confilicts
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
-
php artisan config:clear
//del./bootstrap/cache/*
if you'll got error - set
TELEGRAM_BOT_TOKEN
in .env -
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
@realtebo
php artisan config:clear
//del./bootstrap/cache/*
if you'll got error- set
TELEGRAM_BOT_TOKEN
in .envcomposer 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
composer require irazasyed/telegram-bot-sdk ^3.4.1
thanks you bro. it's working))
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!
thanks its working
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 :)
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
Thank you very much, this worked perfectly.
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
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
php artisan vendor:publish --provider="Telegram\Bot\Laravel\TelegramServiceProvider"
Thank you, that helped.