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 | |
require('parser.php'); | |
define('BOT_TOKEN', 'SEU TOKEN'); | |
define('API_URL', 'https://api.telegram.org/bot'.BOT_TOKEN.'/'); | |
function processMessage($message) { | |
// processa a mensagem recebida | |
$message_id = $message['message_id']; |
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 | |
include('simple_html_dom.php'); | |
define('BASE_URL',"http://g1.globo.com/loterias/"); | |
define('URL_MEGA', BASE_URL.'megasena.html'); | |
define('URL_QUINA', BASE_URL.'quina.html'); | |
define('URL_LOTOMANIA', BASE_URL.'lotomania.html'); | |
define('URL_LOTOCACIL', BASE_URL.'lotofacil.html'); |
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 | |
require('parser.php'); | |
define('BOT_TOKEN', 'SEU TOKEN'); | |
define('API_URL', 'https://api.telegram.org/bot'.BOT_TOKEN.'/'); | |
function processMessage($message) { | |
// processa a mensagem recebida | |
$message_id = $message['message_id']; |
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
DigitsAuthButton digitsAuthButton = (DigitsAuthButton) findViewById(R.id.auth_button); | |
digitsAuthButton.setCallback(callback); | |
digitsAuthButton.setAuthTheme(android.R.style.Theme_Material); |
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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<style name="CustomDigitsTheme" parent="Theme.AppCompat.Light"> | |
<item name="android:textColorPrimary">@android:color/black</item> | |
<item name="android:textColorSecondary">@android:color/darker_gray</item> | |
<item name="android:windowBackground">@android:color/white</item> | |
<item name="android:textColorLink">#ff398622</item> | |
<item name="colorAccent">#ffacee</item> | |
</style> | |
</resources> |
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
DigitsAuthButton digitsAuthButton = (DigitsAuthButton) findViewById(R.id.auth_button); | |
digitsAuthButton.setCallback(callback); | |
digitsAuthButton.setAuthTheme(R.style.CustomDigitsTheme); |