AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [Telegram] Core (https://forums.alliedmods.net/showthread.php?t=311847)

Alexbu444 11-04-2018 19:53

[Telegram] Core
 
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

Phil25 11-04-2018 20:06

Re: [Telegram] Core
 
I like the idea, I've seen it on GitHub a few days ago. You might want to change the game to "any" in this thread.

_Black_Yuzia_ 11-05-2018 14:28

Re: [Telegram] Core
 
10 keys / 10

Mitchell 11-05-2018 17:59

Re: [Telegram] Core
 
Might help linking to what Telegram is and why this is useful. Also why did you decide to do two functions for what 1 could do?

Obyboby 11-09-2018 07:19

Re: [Telegram] Core
 
Subscribed. I use Telegram for my server staff chat and am trying to implement various commands to interact with the server.

Alexbu444 04-17-2020 11:17

Re: [Telegram] Core
 
Updated to version 1.1.1

Requirements:
REST in Pawn

Changes:
Added new methods to the API


All times are GMT -4. The time now is 15:19.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.