shurillu / CTBot

A simple (and easy to use) Arduino Telegram BOT Library for ESP8266/ESP32
MIT License
147 stars 34 forks source link

Integrating with TinyGSM #83

Open woodlist opened 3 years ago

woodlist commented 3 years ago

Thanks for great library. This is the first instrument for me that allowed interaction with telegram bot seamlessly. I did not find how to put an "enhancement" label to this record. It's would be perfect to get used this library not only by wifi connection, but also with customized connection to Internet, like by GSM module.

shurillu commented 3 years ago

Hello woodlist, thank you for using the library! I put the "enhancement" label to this thread for you ;-) Basically, all the connection stuff is located on the CTBotSecureConnection class. It use the WiFiClientSecure class from ESP8266/ESP32 toolchain. It seems to be an interesting thread (BTW I'm thinking about using LORA mesh networks and WiFi/LORA gateway in order to use Telegram bots with LORA... but it's only an idea for now!). So please, let me know what are you thinking on ;-)

Cheers

Stefano

woodlist commented 3 years ago

Dear Stefano, thanks for quick reply. Of course, the LORA mesh network coverage will be an great gift for users, but since lower distance range compared with GSM network, the GSM connection to telegram bot is much actual subject. I recommend the TinyGSM as integration library, cause of being well maintained and widely used. Best Regards.

garudaonekh commented 2 years ago

Love the idea. I used T-Call Sim800L and I used TinyGSM+Blynk. It worked perfectly for me. TinyGSM and Blynk are closely integrated maybe because TinyGSM owner also Blynk founder. @woodlist have you tried TinyGSM with Telegram Bot?

woodlist commented 2 years ago

Love the idea. I used T-Call Sim800L and I used TinyGSM+Blynk. It worked perfectly for me. TinyGSM and Blynk are closely integrated maybe because TinyGSM owner also Blynk founder. @woodlist have you tried TinyGSM with Telegram Bot?

Yes, I have successful experience of using the TinyGSM with https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot If given library author will be so honest to build beneath kind of constructor, as has the Universal Telegram Bot: WiFiClientSecure secured_client; UniversalTelegramBot bot(BOT_TOKEN, secured_client); the task will be done easily.