Closed joroMaser closed 2 years ago
So maybe it's better to always use SSLClient
instead of WiFiClientSecure
3 more questions please :
1- What is the diffrence between
myBot.sendToChannel(msg.chatId, "hi!");
To
myBot.sendMessage(msg,"hi");
2)
and I think const String &channel
in sendToChannel
need to be int64_t
like chatId
in TBMessage
no ?
3) sendTo
can't send to group / channel? only to user_id?
Thank you
At the moment, with ESP32 release 2.0.1, I'm using only WiFiClientSecure because SSLClient take a very long time to be compiled :( despite to it's very good performance.
A channel it's something different either from users and from groups, so it's necessary a specific method to send message.
sendTo()
can send to a group or a to a user (the difference from groups and users are only in the ID where it is negative int64 for groups)
I saw your descriptionhere . But I didn't understand what is the advantage of each choice please? I use esp32wroom