golem-telegram-bot/config.sample.php

64 lines
2.5 KiB
PHP
Raw Normal View History

2017-09-24 20:23:45 +00:00
<?php
2017-09-24 20:23:45 +00:00
/* Telegram API URL - this must not be changed */
const API_URL = 'https://api.telegram.org/bot';
/* Your API authorization token */
const API_TOKEN = '';
2017-09-24 20:23:45 +00:00
/* Your channel ID */
const API_CHANNEL_ID = '@';
/* Users whose messages are forwarded to mailing list and channel */
const BOT_ALLOWED_USERS = array ();
/* Address to forward to */
const MAIL_TO_ADDR = 'example@example.com';
/* Bot email identity */
const MAIL_FROM_ADDR = 'example@example.com';
/* Debug messages on log file */
const DEBUG = true;
2018-01-01 21:09:45 +00:00
/* Be silent when forwarding/writing messages to channel */
const FORWARD_SILENT = true;
2017-09-24 20:23:45 +00:00
/* Log file name */
const LOGFILE = 'botlog.log';
/* Database settings */
const DBFILE = '/data/database.sqlite3';
/* Memcached server connection */
const MEMCACHED_PORT = '11211';
const MEMCACHED_HOST = 'memcached';
2017-09-24 20:23:45 +00:00
$EMOJI_THUMBSUP = mb_convert_encoding('&#x1F44D;', 'UTF-8', 'HTML-ENTITIES');
$EMOJI_THUMBSDOWN = mb_convert_encoding('&#x1F44E;', 'UTF-8', 'HTML-ENTITIES');
$EMOJI_CLOCK = mb_convert_encoding('&#x23F0;', 'UTF-8', 'HTML-ENTITIES');
$EMOJI_BOT = mb_convert_encoding('&#x1F916;', 'UTF-8', 'HTML-ENTITIES');
$EMOJI_MSG = mb_convert_encoding('&#x1F4E7;', 'UTF-8', 'HTML-ENTITIES');
$EMOJI_X = mb_convert_encoding('&#x274C;', 'UTF-8', 'HTML-ENTITIES');
$EMOJI_TOOLS = mb_convert_encoding('&#x1F528;', 'UTF-8', 'HTML-ENTITIES');
2017-09-24 20:23:45 +00:00
// States Flags
const STATE_IDLE = 'idle';
const STATE_WAIT_DATE = 'wait_date';
const STATE_WAIT_TIME = 'wait_time';
const STATE_MSG_ANSWER = 'msg_answer';
2017-09-24 20:23:45 +00:00
// Saved variables in memcached
const MC_STATUS = 'status';
const MC_FORWARD_MSG = 'msg_forward';
const MC_DATE_MSG = 'msg_date';
const MC_INLINE_ID = 'inline_id';
const MC_FW_EDIT = 'fw_edit'; // should not be necessary anymore
const MC_LIST_NUMBER = 'list_number';
const MC_DELETE_SCHEDULED_ID = 'delete_sch_id';
2017-09-24 20:23:45 +00:00
// buttons costants
const MSG_YES = 'y';
const MSG_NO = 'n';
const MSG_SCHEDULE = 'sch';
const MSG_ABORT = 'abort';
const MSG_DELETE = 'delete';
2017-09-24 20:23:45 +00:00
$WELCOME_MESSAGE = "$EMOJI_BOT GOLEMbot
$EMOJI_MSG Se scrivi un messaggio ti chiedo se inoltrarlo al canale
2017-12-26 16:35:14 +00:00
Supporto anche **<b>grassetto</b>**, __<i>corsivo</i>__ e `<code>codice</code>`
2017-09-24 20:23:45 +00:00
$EMOJI_TOOLS Se scrivi un comando eseguo operazioni.
Comandi disponibili: /help, /list";
?>