Size: a a a

2017 April 11

NK

ID:367886772 in Dev Chat
hello
источник

NK

ID:367886772 in Dev Chat
ping
источник

AK

Artem Kulikov in Dev Chat
pong
источник

DW

Daniel Wong in Dev Chat
Artem Kulikov
No, he was killed yesterday
You must be kidding
источник

AK

Artem Kulikov in Dev Chat
No
источник

AK

Artem Kulikov in Dev Chat
Human death is not joking....
источник

DW

Daniel Wong in Dev Chat
this is sad
источник

j

jeny@^=# in Dev Chat
hey hugo
источник

HS

Hugo Santos in Dev Chat
Hey Eugene!!! \o/ How you're doing mate?
источник

HS

Hugo Santos in Dev Chat
I came here to check you guys had any advice on 3 topics using telegram-node-not module:

- User session management (kill some after a while and others, maintain like "forever")
- Broadcast message to some selected users (flood alert)
- Show "typing..." between messages to improve user experience

I'm a beginner using this api and I got a bit lost, any help would be very appreciate.
источник

1

1C-Bitrix in Dev Chat
@ohugosantos, i can help you after few hours,I'm going to boohat'
источник

HS

Hugo Santos in Dev Chat
@bitrixhater I appreciate :)
источник
2017 April 12

1

1C-Bitrix in Dev Chat
@ohugosantos, i'm here.
3. For bot "Typing..." action you can call telegram [api method - sendChatAction](https://core.telegram.org/bots/api#sendchataction) by $.api.sendChatAction($.chatId, 'typing')
2. If i read question correctly, i recommed use MongoDB as database throught Mongoose ODM. You can check my [example of mongoose storage class](https://github.com/bitrixhater/bashrobot/blob/master/extensions/storages/MongooseStorage.js)
1. If you will use my example of storage, i recommend save chatid in your controllers before method like this:
before($) {
$[$.idFromGroupChat ? 'setChatSession' : 'setUserSession']('lastActivity', Date.now())
return $
}
If you have too many controllers, you can use my "beautycode" called ["middleware system"](https://github.com/bitrixhater/bashrobot/blob/master/extensions/middlewares/telegram-node-bot-middlewares.md)
And you can simply get all your users and send them messages by your command
источник

HS

Hugo Santos in Dev Chat
1C-Bitrix
@ohugosantos, i'm here.
3. For bot "Typing..." action you can call telegram [api method - sendChatAction](https://core.telegram.org/bots/api#sendchataction) by $.api.sendChatAction($.chatId, 'typing')
2. If i read question correctly, i recommed use MongoDB as database throught Mongoose ODM. You can check my [example of mongoose storage class](https://github.com/bitrixhater/bashrobot/blob/master/extensions/storages/MongooseStorage.js)
1. If you will use my example of storage, i recommend save chatid in your controllers before method like this:
before($) {
$[$.idFromGroupChat ? 'setChatSession' : 'setUserSession']('lastActivity', Date.now())
return $
}
If you have too many controllers, you can use my "beautycode" called ["middleware system"](https://github.com/bitrixhater/bashrobot/blob/master/extensions/middlewares/telegram-node-bot-middlewares.md)
And you can simply get all your users and send them messages by your command
Impressive. Thank you so much for your attention. I'll let you know the implementation
источник

HS

Hugo Santos in Dev Chat
Cheers
источник

1

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

HS

Hugo Santos in Dev Chat
1C-Bitrix
Glad to help
You did 👍😁
источник

LS

Lior Shub in Dev Chat
Hey guys, have a question:
I'm trying to send a command via URL.  but the router does not recognize it... Is there something I need to do in the router in order to listen to the bot itself?
источник

n

numkms 💤💤💤 in Dev Chat
idk about listening http on this bot but u can use express in onMaster callback
источник

1

1C-Bitrix in Dev Chat
Lior Shub
Hey guys, have a question:
I'm trying to send a command via URL.  but the router does not recognize it... Is there something I need to do in the router in order to listen to the bot itself?
why do you need this?
источник