Size: a a a

2017 December 09

Z

Zheka in Dev Chat
$.sendMessage("/start") doesnt trigger it, only sends message, and to trigger this command you have to click /start
источник

MM

Mikita Melnikau in Dev Chat
.when(new TextCommand('/start', 'start'), new StartConstoller())
 .when(new RegexpCommand(/\/startme/, 'otherStart'), new OtherConstoller())
источник

MM

Mikita Melnikau in Dev Chat
2x controllers starts same time by /startme
источник

MM

Mikita Melnikau in Dev Chat
but there is no reasone for this
источник

MM

Mikita Melnikau in Dev Chat
its just an events handlers
источник

Z

Zheka in Dev Chat
I have
источник

Z

Zheka in Dev Chat
'Text': () => {
               $.sendMessage("command", {
                   'parse_mode': 'Markdown',
                   'reply_markup':
                   JSON.stringify({
                       "keyboard": [[{
                           'text': 'foo',
                           'callback': (callbackQuery) => {console.log("foo")}
                       }]],
                       "one_time_keyboard": true,
                       "resize_keyboard": true
                       
                   })
               });
источник

Z

Zheka in Dev Chat
And routing
источник

Z

Zheka in Dev Chat
tg.router
   .when(new Telegram.TextCommand('/hello', 'helloCommand'), new HelloController())
   .when(new Telegram.TextCommand('command', 'command'), new commandController())
   .otherwise(new OtherController());
источник

Z

Zheka in Dev Chat
But command controller is not triggering
источник
2017 December 10

А

Алексей in Dev Chat
It's just the callback();
источник

j

jeny@^=# in Dev Chat
eeeeee kripton
источник

K

Kripton in Dev Chat
I wanna separate the process of bot. It should act differently in group and private chat.
источник

c

carmelolg in Dev Chat
Hello!
источник

c

carmelolg in Dev Chat
How is possible deploying my implementations? I'm using this framework but i'm not able to start the command ping after push on git
источник

c

carmelolg in Dev Chat
I would like know what's the right deploy processing
источник

c

carmelolg in Dev Chat
I did it
источник

c

carmelolg in Dev Chat
Btw ty
источник
2017 December 11

PB

Pandy Bird in Dev Chat
So I'm trying to deploy my bot to heroku using webhooks and getting some errors
источник

PB

Pandy Bird in Dev Chat
It works great locally when using getUpdates...
источник