Raised This Month: $32 Target: $400
 8% 

[Telegram] Core


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Alexbu444
Junior Member
Join Date: Nov 2018
Location: Russia, Saint Petersburg
Plugin ID:
6328
Plugin Version:
1.0.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Simpliest library for sending message on Telegram
    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
    Phil25
    AlliedModders Donor
    Join Date: Feb 2015
    Old 11-04-2018 , 20:06   Re: [Telegram] Core
    Reply With Quote #2

    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.
    Phil25 is offline
    _Black_Yuzia_
    Member
    Join Date: Oct 2017
    Old 11-05-2018 , 14:28   Re: [Telegram] Core
    Reply With Quote #3

    10 keys / 10
    _Black_Yuzia_ is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 11-05-2018 , 17:59   Re: [Telegram] Core
    Reply With Quote #4

    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?

    Last edited by Mitchell; 11-05-2018 at 18:00.
    Mitchell is offline
    Obyboby
    Veteran Member
    Join Date: Sep 2013
    Old 11-09-2018 , 07:19   Re: [Telegram] Core
    Reply With Quote #5

    Subscribed. I use Telegram for my server staff chat and am trying to implement various commands to interact with the server.
    __________________
    Obyboby is offline
    Alexbu444
    Junior Member
    Join Date: Nov 2018
    Location: Russia, Saint Petersburg
    Old 04-17-2020 , 11:17   Re: [Telegram] Core
    Reply With Quote #6

    Updated to version 1.1.1

    Requirements:
    REST in Pawn

    Changes:
    Added new methods to the API
    Alexbu444 is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 20:54.


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