witnessmenow / Universal-Arduino-Telegram-Bot

Use Telegram on your Arduino (ESP8266 or Wifi-101 boards)
MIT License
1.12k stars 306 forks source link

disable_web_page_preview + disable_notification + deleteMessage() #260

Open gemini1389 opened 2 years ago

gemini1389 commented 2 years ago

Added parameter "disable_web_page_preview" for sendMessage(). https://core.telegram.org/bots/api#sendmessage

witnessmenow commented 2 years ago

Thanks, will go through all PRs in the next couple of days/weeks and merge all!

On Sun, 31 Oct 2021 at 23:10, Gemini_13 @.***> wrote:

Added parameter "disable_web_page_preview" for sendMessage(). https://core.telegram.org/bots/api#sendmessage

You can view, comment on, or merge this pull request online at:

https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot/pull/260 Commit Summary

File Changes

(2 files https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot/pull/260/files )

Patch Links:

- https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot/pull/260.patch

https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot/pull/260.diff

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot/pull/260, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAL5PQWBNIYMXW5B3JLCYJDUJXEFNANCNFSM5HC2A2CA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

gemini1389 commented 2 years ago

Added some more changes:

  1. Added a piece of code for disable_web_page_preview (not all added last time).
  2. Added the deleteMessage() function and an example for it.
  3. Added the maxMessageLength parameter to the constructor (I saw #210 late).
  4. Removed _debug. There is TELEGRAM_DEBUG for debugging.
gemini1389 commented 2 years ago

@witnessmenow, can you say roughly when you can check PR? Thanks!