Thread: [Telegram] Core
View Single Post
Author Message
Alexbu444
Junior Member
Join Date: Nov 2018
Location: Russia, Saint Petersburg
Old 11-04-2018 , 19:53   [Telegram] Core
Reply With Quote #1

Simpliest library for sending messages in Telegram

Code:
/**
* Send text messages.
*
* @param    szText            Text of the message to be sent
* @param    szParseMode        Markdown or HTML
*
* @return  void
*/
native void Telegram_SendMessage(char[] szText, char[] szParseMode);

/**
* Send photos.
*
* @param    szPhoto            Photo to send. Pass an HTTP URL as a String
*
* @return  void
*/
native void Telegram_SendPhoto(char[] szPhoto);

/**
* Create native poll.
*
* @param    szQuestion        Poll question
* @param    Poll              List of answer options
* @param    IsAnon            True, if the poll needs to be anonymous
*
* @return  void
*/
native void Telegram_SendPoll(char[] szQuestion, JSONArray Poll, bool IsAnon = true);
GitHub

Last edited by Alexbu444; 04-17-2020 at 11:13.
Alexbu444 is offline