All Projects → cotestatnt → AsyncTelegram

cotestatnt / AsyncTelegram

Licence: MIT license
Async Arduino Telegram BOT Library for ESP8266 and ESP32

Programming Languages

C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to AsyncTelegram

Dsckeybusinterface
An Arduino/esp8266/esp32 library to directly interface with DSC security systems.
Stars: ✭ 202 (+392.68%)
Mutual labels:  esp8266, telegram-bot, esp32
Blog
A set of various projects based on ESP8266, ESP32, ATtiny13, ATtiny85, ATtiny2313, ATmega8, ATmega328, ATmega32, STM32 and more.
Stars: ✭ 198 (+382.93%)
Mutual labels:  esp8266, esp32
Jled
Non-blocking LED controlling library for Arduino and friends.
Stars: ✭ 197 (+380.49%)
Mutual labels:  esp8266, esp32
iot-product-dev-book
Source code for example apps from IoT Development for ESP32 and ESP8266 with JavaScript.
Stars: ✭ 38 (-7.32%)
Mutual labels:  esp8266, esp32
Blynk Server
Blynk is an Internet of Things Platform aimed to simplify building mobile and web applications for the Internet of Things. Easily connect 400+ hardware models like Arduino, ESP8266, ESP32, Raspberry Pi and similar MCUs and drag-n-drop IOT mobile apps for iOS and Android in 5 minutes
Stars: ✭ 8 (-80.49%)
Mutual labels:  esp8266, esp32
Esp8266 React
A framework for ESP8266 & ESP32 microcontrollers with a React UI
Stars: ✭ 193 (+370.73%)
Mutual labels:  esp8266, esp32
Awot
Arduino web server library.
Stars: ✭ 200 (+387.8%)
Mutual labels:  esp8266, esp32
Openmqttgateway
MQTT gateway for ESP8266, ESP32, Sonoff RF Bridge or Arduino with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility, SMS & LORA.
Stars: ✭ 2,413 (+5785.37%)
Mutual labels:  esp8266, esp32
Awesome Esp
📶 A curated list of awesome ESP8266/32 projects and code
Stars: ✭ 212 (+417.07%)
Mutual labels:  esp8266, esp32
Arduinowebsockets
A library for writing modern websockets applications with Arduino (ESP8266 and ESP32)
Stars: ✭ 213 (+419.51%)
Mutual labels:  esp8266, esp32
Ems Esp
ESP8266 firmware to read and control EMS and Heatronic compatible equipment such as boilers, thermostats, solar modules, and heat pumps
Stars: ✭ 226 (+451.22%)
Mutual labels:  esp8266, esp32
Easybutton
Arduino library for debouncing momentary contact switches, detect press, release, long press and sequences with event definitions and callbacks.
Stars: ✭ 187 (+356.1%)
Mutual labels:  esp8266, esp32
Mongoose Os
Mongoose OS - an IoT Firmware Development Framework. Supported microcontrollers: ESP32, ESP8266, CC3220, CC3200, STM32F4, STM32L4, STM32F7. Amazon AWS IoT, Microsoft Azure, Google IoT Core integrated. Code in C or JavaScript.
Stars: ✭ 2,234 (+5348.78%)
Mutual labels:  esp8266, esp32
Esp Webota
Simple web based Over-the-Air (OTA) updates for ESP based projects
Stars: ✭ 189 (+360.98%)
Mutual labels:  esp8266, esp32
Dhtesp
Optimized DHT library for ESP32/ESP8266 using Arduino framework
Stars: ✭ 184 (+348.78%)
Mutual labels:  esp8266, esp32
wireless-esp8266-dap
ESP8266 Wireless Debugger. Based on CMSIS-DAP v2.0.0. Optional 40MHz SPI acceleration, etc. ESP8266 无线调试器
Stars: ✭ 154 (+275.61%)
Mutual labels:  esp8266, esp32
Influxdb Client For Arduino
Simple library for sending measurements to an InfluxDB with a single network request. Supports ESP8266 and ESP32.
Stars: ✭ 176 (+329.27%)
Mutual labels:  esp8266, esp32
Arduino Applemidi Library
Send and receive MIDI messages over Ethernet (rtpMIDI or AppleMIDI)
Stars: ✭ 177 (+331.71%)
Mutual labels:  esp8266, esp32
Lwesp
Lightweight Espressif AT parser library for ESP8266 and ESP32 devices.
Stars: ✭ 212 (+417.07%)
Mutual labels:  esp8266, esp32
Esp32marauder
A suite of WiFi/Bluetooth offensive and defensive tools for the ESP32
Stars: ✭ 233 (+468.29%)
Mutual labels:  esp8266, esp32

AsyncTelegram

Check the version https://github.com/cotestatnt/AsyncTelegram2


Introduction

AsyncTelegram is an Arduino class for managing Telegram Bot on ESP8266 and ESP32 platform.

When you add the possibility to send a message from your IoT application to a Telegram Bot, this should be only an additional "features" and not the core of your firmware. Unfortunately, most of Telegram libraries, stucks your micro while communicating with the Telegram Server in order to read properly the response and parse it.

AsyncTelegram do this job in async way and not interfee with the rest of code especially on ESP32 where we can take advantage of dual core architecture and move the task on the free core (core 0). With the ESP8266 this is not possible, so sending/receive tasks are splitted in two different moments, avoiding close the server connection in the meantime (https handshaking could be very slow).

It relies on ArduinoJson v6 library so, in order to use a AsyncTelegram object, you need to install the ArduinoJson library first (you can use library manager).

You also need to install the ESP8266 Arduino Core and Library or the ESP32 Arduino Core and Library.

Don't you know Telegram bots and how to setup one? Check this.

  • this library work with ArduinoJson library V6.x _

Features

  • Send and receive non-blocking messages to Telegram bot
  • Send photo both from url and from local filesystem (SPIFFS, LittleFS, FFAT, SD etc etc )
  • Inline keyboards
  • Reply keyboards
  • Receive localization messages
  • Receive contacts messages
  • Http communication on ESP32 work on own task pinned to Core0

To do

  • Send documents

Supported boards

The library works with the ESP8266 and ESP32 chipset.

Setting Clock time.

To ensure certificate validation, WiFiClientSecure needs time updated. To choose correct time zone, Follow this link https://sites.google.com/a/usapiens.com/opnode/time-zones and replace String value inside

 myBot.setClock("CET-1CEST,M3.5.0,M10.5.0/3");

with corresponding city time zone string.

Simple and responsive usage

Take a look at the examples provided in the examples folder.

Reference

Here how to use the library.

  • 1.1.3 Fix for callback query issue
  • 1.1.2 Lot of bug fixes, better memory management and more stability (especcially on ESP32)
  • 1.1.1 Backward compatibility
  • 1.1.0 Silent message (no notification) supported
  • 1.0.9 Added support for force_reply option (act as if the user has selected the bot's message and tapped 'Reply')
  • 1.0.8 Now you can update ESP firmware with a Telegram message (thanks to Vladimir!). Added example and instructions
  • 1.0.7 Added example for take picture with ESP32-CAM board
  • 1.0.6 AsyncTelegram now can send also pictures
  • 1.0.5 Added possibility to forward a messege to a puclic channel (bot must be one of admins) or to a specific user
  • 1.0.4 Fixed ArduinoJson ARDUINOJSON_DECODE_UNICODE define
  • 1.0.3 Bug fixes
  • 1.0.2 Added method for update Telegram server fingerprint (with online service https://www.grc.com/fingerprints.htm )
  • 1.0.1 Now is possible assign a callback function for every "inline keyboard button"
  • 1.0.0 Initial version
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].