Tipo: Servicio
Cómo crear el Bot y obtener la clave API:
Cómo obtener el UserID para el acceso:
Lista de comandos:
Si necesitas otros comandos o añadidos, házmelo saber y los añadiré si es apropiado y útil.
Cómo se ve visualmente
Cómo crear el Bot y obtener la clave API:
- Crear un Bot:
- Abre la aplicación de Telegram y busca BotFather (@BotFather).
- Inicia un chat con BotFather haciendo clic en el botón "Start".
- Usa el comando /newbot para crear un nuevo bot. Se te pedirá que elijas un nombre y un nombre de usuario para tu bot. El nombre de usuario debe terminar en "bot" (por ejemplo, MyBot o MyCoolBot).
- Obtener la clave API:
- Una vez creado el bot, BotFather te proporcionará una clave API única (también conocida como token). Este token es necesario para autenticar tu bot con la API de Telegram.
- Configurar el Bot:
- Puedes personalizar el perfil de tu bot (por ejemplo, establecer una foto de perfil, descripción y texto de información) usando comandos como /setuserpic, /setdescription y /setabouttext.
- Usar la clave API:
- Para empezar a usar tu bot, necesitarás la clave API proporcionada por BotFather. Mantén esta clave segura, ya que permite acceso completo a la cuenta de tu bot.
Cómo obtener el UserID para el acceso:
- Abre Telegram y busca userinfobot (@userinfobot).
- Inicia un chat con el bot haciendo clic en el botón "Start".
- El bot responderá automáticamente con tu User ID y otra información básica.
Code:
# Enable Telegram bot
TelegramBotEnabled = False
# Telegram API Key from @BotFather
TelegramBotApiKey =
# API base URL
TelegramBotBaseURL = https://api.telegram.org/bot
# Telegram UserID for access to bot.
# Example TelegramChatIds = 123123,123124 or TelegramChatIds = 123123
TelegramChatIds =
# Telegram task delay (at milliseconds). By default 1 sec.
TelegramBotTaskDelay = 1000
Lista de comandos:
Code:
/help - Get list of available commands
/list_online - Show list of online players
/online - Show online player count
/find <name> - Find character by name
/whois <name> - Get info by player name
/inventory <playerName> - Show player inventory
/setlevel <name> <level> - Set player level
/give_item <name> <id> <count> - Give item to player
/remove_item <name> <id> <count> - Remove item from player
/pm <player> <message> - Send private message to player
/gmlist - Show list of GMs online
/announce <message> - Send an announcement to all players
/jail <name> <time> <reason> - Jail a player
/unjail <name> - Release a player from jail
/kick <name> - Kick player from the game
/char_ban <name> <days> - Ban a player
/chat_ban <name> <period> - Ban a player from chat
/nospam <name> <period> - Shadow ban a player's chat
/list_clans - Show list of all clans
/status - Show server status and info
/heap - Dump server heap memory
/mem - Show server memory usage
/gc - Show garbage collection info
/net - Show network statistics
/aistats - Show AI statistics
/effectstats - Show effects statistics
/threads - Show thread info and statistics
/config - Set or get configuration parameters
/pathfind - Show pathfinding statistics
/pool - Show thread pool statistics
/restart - Restart the server
/shutdown <time> - Shutdown the server
/abort - Abort server restart or shutdown
/uptime - Show server uptime
/version - Show server version
Si necesitas otros comandos o añadidos, házmelo saber y los añadiré si es apropiado y útil.
Cómo se ve visualmente