This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php header('Content-type: application/json; charset=UTF-8'); | |
| ini_set('memory_limit', -1); | |
| if (!file_exists('madeline.php')) | |
| { | |
| copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); | |
| } | |
| include 'madeline.php'; | |
| $MadelineProto = new \danog\MadelineProto\API('./made/sessionbot.madeline'); | |
| $MadelineProto->async(true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php header('Content-type: application/json; charset=UTF-8'); | |
| ini_set('memory_limit', -1); | |
| ini_set('max_execution_time', 0); | |
| if (!file_exists('madeline.php')) { | |
| copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); | |
| } | |
| include 'madeline.php'; | |
| $MadelineProto = new \danog\MadelineProto\API('./made/sessionbot.madeline'); | |
| $MadelineProto->async(true); | |
| $MadelineProto->loop(function () use ($MadelineProto) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local socket = require 'socket' | |
| math.randomseed(socket.gettime()*1000) -- random initialize | |
| math.random(); math.random(); math.random() -- warming up | |
| local emoji = { | |
| four="4⃣",kiss_ww="👩❤💋👩",maple_leaf="🍁",waxing_gibbous_moon="🌔",bike="🚲",recycle="♻",family_mwgb="👨👩👧👦",flag_dk="🇩🇰",thought_balloon="💭",oncoming_automobile="🚘",guardsman_tone5="💂🏿",tickets="🎟",school="🏫",house_abandoned="🏚",blue_book="📘",video_game="🎮",triumph="😤",suspension_railway="🚟",umbrella="☔",levitate="🕴",cactus="🌵",monorail="🚝",stars="🌠",new="🆕",herb="🌿",pouting_cat="😾",blue_heart="💙",["100"]="💯",leaves="🍃",family_mwbb="👨👩👦👦",information_desk_person_tone2="💁🏼",dragon_face="🐲",track_next="⏭",cloud_snow="🌨",flag_jp="🇯🇵",children_crossing="🚸",information_desk_person_tone1="💁🏻",arrow_up_down="↕",mount_fuji="🗻",massage_tone1="💆🏻",flag_mq="🇲🇶",massage_tone3="💆🏽",massage_tone2="💆🏼",massage_tone5="💆🏿",flag_je="🇯🇪",flag_jm="🇯🇲",flag_jo="🇯🇴",red_car="🚗",hospital="🏥",red_circle="🔴",princess="👸",tm="™",curly_loop="➰",boy_tone5="👦🏿",pouch="👝",boy_t |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local charset = {} | |
| -- qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890 | |
| for i = 48, 57 do table.insert(charset, string.char(i)) end | |
| for i = 65, 90 do table.insert(charset, string.char(i)) end | |
| for i = 97, 122 do table.insert(charset, string.char(i)) end | |
| function string.random(length) | |
| math.randomseed(os.time()) |