Recent

Author Topic: Telegram bots API Wrapper  (Read 4734 times)

bonmario

  • Sr. Member
  • ****
  • Posts: 268
Re: Telegram bots API Wrapper
« Reply #15 on: July 11, 2018, 05:14:57 pm »
Ok, thanks, Mario

Renat.Su

  • Jr. Member
  • **
  • Posts: 98
    • Renat.Su
Re: Telegram bots API Wrapper
« Reply #16 on: July 11, 2018, 08:37:00 pm »
I hope I understood you correctly and that's what you needed

bonmario

  • Sr. Member
  • ****
  • Posts: 268
Re: Telegram bots API Wrapper
« Reply #17 on: July 12, 2018, 08:59:11 am »
Yes, thank you, I will do some tests in the next days.

Thanks, Mario

Renat.Su

  • Jr. Member
  • **
  • Posts: 98
    • Renat.Su
Re: Telegram bots API Wrapper
« Reply #18 on: December 08, 2018, 03:50:09 pm »
Added some tests.
Added a simple procedural type to send a message via the bot (without creating a class).
 
Code: Pascal  [Select]
  1. { Procedure style method to send message from Bot to chat/user }
  2. function TgBotSendMessage(const AToken: String; chat_id: Int64; const AMessage: String;
  3.   out AReply: String;
  4.   ParseMode: TParseMode = pmDefault; DisableWebPagePreview: Boolean=False;
  5.   AReplyMarkup: TReplyMarkup = nil; ReplyToMessageID: Integer = 0): Boolean;
Brook-telegram added functions for calculating statistics for the day (events and unique users)
« Last Edit: December 08, 2018, 03:51:57 pm by Renat.Su »