X
X
xawifoo2019-02-08 05:56:26
JavaScript
xawifoo, 2019-02-08 05:56:26

How to send a message to a telegram chat (Working with TDLib)?

Hello!
There was a problem when working with TDLib, namely with the method - messages.sendMessage
If the chat without a short link is @testcgroup, and with id - g000000000, then everything works fine.
If the chat becomes public and a short link appears - @testcgroup, then the group id no longer sends a message and displays an error

CHAT_ID_INVALID
.
You cannot send a message to @, because it only accepts int
messages.sentMessage#d1f4d35c id:int date:int pts:int seq:int = messages.SentMessage;

Maybe someone faced this problem?
I would be grateful for any information :3

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
solalex, 2019-02-08
@solalex

for groups in the telegram ID starts with a minus

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question