Giter VIP home page Giter VIP logo

Comments (4)

decadence avatar decadence commented on June 18, 2024

Ok, I forgot how array_replace_recursive works. So my chat_id will have priority.
But there is another problem: we have to load driver manually (like say method does):

$bot->setDriver(DriverManager::loadFromName(TelegramDriver::class, $config));

$bot->sendRequest("pinChatMessage", [
  "chat_id" => $chatId,
  "message_id" => 40,
]);

Can you loadDriver inside sendRequest like in say method?
Because by default it's NullDriver which does nothing and it was hard to debug.

from driver-telegram.

kubk avatar kubk commented on June 18, 2024

You can call loadDriver in your bootstrap file. From the docs:

DriverManager::loadDriver(\BotMan\Drivers\Telegram\TelegramDriver::class);

// Create BotMan instance
BotManFactory::create($config);

https://botman.io/2.0/driver-telegram

from driver-telegram.

decadence avatar decadence commented on June 18, 2024

It's different thing. You have to setDriver even if you loadDriver before (say method does it for example). Without loadDriver nothing is going to work at all.

from driver-telegram.

dondap avatar dondap commented on June 18, 2024

anyone found a solution to this?

from driver-telegram.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.