Universal-Arduino-Telegram-Bot icon indicating copy to clipboard operation
Universal-Arduino-Telegram-Bot copied to clipboard

disable_web_page_preview + disable_notification + deleteMessage()

Open gemini1389 opened this issue 4 years ago • 3 comments

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

gemini1389 avatar Oct 31 '21 23:10 gemini1389

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.

witnessmenow avatar Nov 01 '21 07:11 witnessmenow

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 avatar Nov 02 '21 23:11 gemini1389

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

gemini1389 avatar Nov 15 '21 22:11 gemini1389