Size: a a a

2017 March 26

n

numkms 💤💤💤 in Dev Chat
ебать поцаны в какое время живем
источник

j

jeny@^=# in Dev Chat
Даже у меня больше звездочек, скорее всего
источник

j

jeny@^=# in Dev Chat
А я дизайнер
источник

NA

Narek Abovyan in Dev Chat
Даже у меня больше
источник

j

jeny@^=# in Dev Chat
А он хач
источник

NA

Narek Abovyan in Dev Chat
трустори
источник
2017 March 28

🎃

🎃 in Dev Chat
is this the right place to ask questions about telegram node bot?
источник

1

1C-Bitrix in Dev Chat
Yes, this is right place
источник

🎃

🎃 in Dev Chat
I want my bot to return chatid from a group chat by sending /chatid in groupchat.
then when you send the bot a personalmessage
/sayinchat <chatid> <message>
where chatid is the id you got from the bot before, its supposed to say your message into the groupchat (so that the other members dont know, who send the message).
How can i get the chatid of current chat?
источник

GA

Giyos Abbaskhanov in Dev Chat
var chatIdentifyer = $.chatId
источник

🎃

🎃 in Dev Chat
thank you, senpai
источник

GA

Giyos Abbaskhanov in Dev Chat
u'r welcome, but I am still newby. not senpai yet
источник

🎃

🎃 in Dev Chat
😅
источник

🎃

🎃 in Dev Chat
i want to use
tg.api.sendMessage(chatid, message)
in the controller, which is a different file from index.js.
tg is defined in index.js
how can i pass tg to my controller?

I tried to pass it when creating the controller in index.js:
const pingctrl = new PingController(tg);

and in the constructor i said:

class PingController extends Telegram.TelegramBaseController{
       constructor(tg) {
               super();
               this.tg = tg;
       }

It still says tg is not defined. any ideas?
источник

1

1C-Bitrix in Dev Chat
@narek, расширь пожалуста, чтобы отправлялось не более 30 сообщений в секунду и не больше одного сообщения в секунду одному пользователю
источник

1

1C-Bitrix in Dev Chat
🎃
i want to use
tg.api.sendMessage(chatid, message)
in the controller, which is a different file from index.js.
tg is defined in index.js
how can i pass tg to my controller?

I tried to pass it when creating the controller in index.js:
const pingctrl = new PingController(tg);

and in the constructor i said:

class PingController extends Telegram.TelegramBaseController{
       constructor(tg) {
               super();
               this.tg = tg;
       }

It still says tg is not defined. any ideas?
источник

🎃

🎃 in Dev Chat
thank you, it works now :) i used
tg.api.sendMessage instead of
this.tg.api.sendMessage
источник

1

1C-Bitrix in Dev Chat
источник

1

1C-Bitrix in Dev Chat
@nacsis, like real
источник

🎃

🎃 in Dev Chat
haha nice drawing
источник