Recent

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

bonmario

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

Renat.Su

  • Full Member
  • ***
  • Posts: 135
    • 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: 271
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

  • Full Member
  • ***
  • Posts: 135
    • 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 »

Renat.Su

  • Full Member
  • ***
  • Posts: 135
    • Renat.Su
Re: Telegram bots API Wrapper
« Reply #19 on: December 15, 2018, 09:16:09 am »
SSH emulator via telegram
Anyone interested to manage a remote computer (a web server, a regular computer with access to the Internet) via telegrams, made a working example of the program source code https://github.com/Al-Muhandis/ShellRemoteBot
Actively tested on Linux (Debian), but should work on Windows. Instead of webhooks, longpolling is used to get updates from server telegrams, respectively, the program can work not only on a web server, but also on any home computer.
It is convenient to manage a web server via telegram in the phone.
The program can run as a console program that runs manually and as a service/daemon

Renat.Su

  • Full Member
  • ***
  • Posts: 135
    • Renat.Su
Re: Telegram bots API Wrapper
« Reply #20 on: December 15, 2018, 09:17:21 am »
Visually it looks like this

Renat.Su

  • Full Member
  • ***
  • Posts: 135
    • Renat.Su
Re: Telegram bots API Wrapper
« Reply #21 on: March 18, 2019, 07:46:41 pm »
1. Refactoring LongPollingDesktop example & other examples restructuring
2. Added some procedures for API
3. Payments API methods and implementations
4. Other fixes and improvements

bonmario

  • Sr. Member
  • ****
  • Posts: 271
Re: Telegram bots API Wrapper
« Reply #22 on: Today at 08:01:48 am »
Great job.

Thanks, Mario