ONLY FOR HTML GAMES
Telegram Gaming Platform: https://core.telegram.org/bots/games
More info: https://telegram.org/blog/games
DEMO: Contact via telegram the @pixelgames_bot and write /kingbox and play or share with friends my little game
With new version of Telegram Messenger bots can offer their users HTML5 games to play solo or to compete against each other in groups and one-on-one chats. Games are a new type of content on Telegram that your bot can send to users. This extension that allows you to use the new Telegram Gaming Platform and send the scores within the chat. If you need i can write some tutorial for make a bot to share your HTML game.
How to use:
DOWNLOAD THE TELEGRAM JS FILES:
And import this file like extension (now you have the games.js)
Import all scripts and objects then add ONLY ONE obj_telegram in your first room. Now edit the INIT script with your bot token and now you can use the script to share the player score
// UPDATE SCORE script_telegram_insertScore(user_id, message_id, score, true);
*** IF YOU HAVE ANY PROBLEMS WITH SOME FUNCTIONS ***
When I wanted to distribute this extension I also wanted to add a library JS but i dont know the Why but seems it is not in the package, so if you cant find some libraries you can download my test project with all files:
Version 1.0.1. Published November 18, 2016
Created with GameMaker: Studio v1.4.1763
You can only review assets you've bought.
Can't get it to work
I tried with your test project on my own server and bot. It doesn't show any score.
Please make a short tutorial
Yes i want to do that, for now you can check my test project ;)
where is getQueryString() ?
i cant found it
Yes i know when i exported this extension i cant add one JS file to the export, please see the description for the Test Project