Size: a a a

2018 May 04

D@

Dark @ LFM Winter Party in Dev Chat
As in, the owner’s ID
источник

А

Алексей in Dev Chat
Dark @ LFM Winter Party
Hey guys, I was wondering two things:

1, is there a bot join event I can use?
2, is there a way to get the owner ID of a telegram chat?
What language?
источник

D@

Dark @ LFM Winter Party in Dev Chat
Алексей
What language?
NodeJS
источник

D@

Dark @ LFM Winter Party in Dev Chat
the library I'm using said to come here for help haha
источник

D@

Dark @ LFM Winter Party in Dev Chat
источник

А

Алексей in Dev Chat
Mikita Melnikau
тебе что примера с пинг понгом не хватило?
One, I know a little Russian
Two, the bot would send the message to me. Example (a user other than me sent a command, the bot sends ME a message)
Three, the ping pong example, нет
источник

А

Алексей in Dev Chat
That's a different one
источник

А

Алексей in Dev Chat
Use console.log($)
источник

А

Алексей in Dev Chat
Алексей
Use console.log($)
For the id, use $.message.from.id
источник

D@

Dark @ LFM Winter Party in Dev Chat
I'm wanting to get the chat owner's ID, not the person who sent the message
источник

D@

Dark @ LFM Winter Party in Dev Chat
like, when the bot joins a chat, tell us that it's joined a chat, and send the owner's ID
источник

А

Алексей in Dev Chat
Dark @ LFM Winter Party
I'm wanting to get the chat owner's ID, not the person who sent the message
Aaaaah, no I don't know how 😅
источник

А

Алексей in Dev Chat
But I don't think you can do that
источник

А

Алексей in Dev Chat
Not unless the owner sends you a message
источник

D@

Dark @ LFM Winter Party in Dev Chat
I know it's possible to get the admins
источник

А

Алексей in Dev Chat
Or adds you
источник

D@

Dark @ LFM Winter Party in Dev Chat
but I'm not sure about owner
источник

А

Алексей in Dev Chat
Dark @ LFM Winter Party
I know it's possible to get the admins
Yup
источник

D@

Dark @ LFM Winter Party in Dev Chat
🤔
источник

А

Алексей in Dev Chat
As I said I don't think you can do that
источник