Telegram Bot For U2

Overview

Telegram Bot - U2 Tool Box

下载 Release 中的 Jar 文件自行部署,不定时更新

一键部署脚本

在 root 下执行以下命令,仅支持 centos (瞎写的不一定好用

bash <(curl -sSL https://raw.githubusercontent.com/kurodaak1ra/Telegram-Bot-For-U2/main/u2-bot.sh)

前期准备

  1. 一台电脑或服务器
  2. 需部署在可以访问 Google 的网络环境下(国外服务器、国内 IPLC)
  3. 自行 @BotFather 申请注册一个属于自己的 TelegramBot,并设置 Bot 的 command 为
all - 全部指令

环境搭建

  1. 请在电脑或服务器先安装 JDK (推荐 OpenJDK 8)
[root@centos ~]# yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel
[root@centos ~]# java -version
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (build 1.8.0_292-b10)
OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)
  1. 把打包好的 Jar 包上传到服务器 /home/ 目录下
  2. 把项目中的 u2-bot.service 文件上传到服务器 /etc/systemd/system/ 目录下,并修改文件中的 {username} {token} 为你申请到 Bot 的 username 和 token

telegram-bot-for-u2-0.0.1-SNAPSHOT.jar 参数说明

必填参数
--bot.username={username} (没有 @)
--bot.token={token}

选填参数
--phantomjs.path={path} (不填没有 PM 提醒功能)

可选填 cookie 实现免手动登陆,但不推荐这么做,也不提供设置方法,有能力自行研究

  1. 执行命令
[root@centos ~]# systemctl daemon-reload
[root@centos ~]# systemctl enable u2-bot
[root@centos ~]# systemctl start u2-bot

功能

  • 登陆
  • 登出
  • 签到
  • 签名条
  • 调戏 U2 娘
  • UCoin 转账
  • 对种子施放魔法
  • 查询种子及详细信息
  • PM 提醒 (需配置 phantomjs 参数)
  • 全站 Free 提醒

非服务器部署,即开即用

(你要上的去 Google 才行

java -jar telegram-bot-for-u2-0.0.1-SNAPSHOT.jar --bot.username={xxxxx} --bot.token={xxxxx}

常见问题

我的 U2 账号登陆了 Bot 别人会不会也可以操作我的 Bot?

回答: 不会,一旦你登陆之后,除了你的 Telegram 账号以外,任何人都操作不了 Bot,直到你登出后 Bot 才会接受别人的指令,并且将 Bot 拉入到群组后 Bot 也会立即自行退出

我的 Telegram 账号被注销了,操作不了 Bot 了怎么办

回答: 删除 u2-bot.db 文件重新启动即可 (如果你没更改过路径,那么应该在 /home 路径下)

PhantomJS 如何下载

回答: https://phantomjs.org/download.html 选择好平台后直接下载解压 (不需要编译,直接用),填好可执行文件路径即可,请具体到文件名请具体到文件名请具体到文件名

PM 消息中文不显示

回答: 请在服务器中安装中文字体

You might also like...

Nagram is a third-party Telegram client based on Nekogram with not many but useful modifications

🐾 Nagram is a third-party Telegram client based on Nekogram with not many but useful modifications. Official site: https://nextalone.xyz Teleg

Dec 29, 2022

Killergram - Remove sponsored messages of Telegram

Killergram An Android Xposed module to remove sponsored messages of Telegram Support clients Official org.telegram.messenger Official org.telegram.mes

Jan 2, 2023

[WIP] Springram is uber library for working with Telegram using Spring Framework and Spring Boot.

Springram Springram is a library for working with telegram using the spring framework and spring boot. This library gives you the ability to use contr

Nov 1, 2022

An Xposed module for Telegram clients

TMoe TMoe 是一个兼容若干第三方开源 Telegram 客户端的开源 Xposed 模块 使用方法 激活本模块后,在 Telegram 客户端的设置中点击 "TMoe 设置" 即可开关对应功能。 一切开发旨在学习,请勿用于非法用途 本项目保证永久开源,欢迎提交 Issue 或者 Pull R

Dec 31, 2022

Nekogram is a third-party Telegram client with not many but useful modifications

Nekogram is a third-party Telegram client with not many but useful modifications

Nov 13, 2022

A simple proxy software made for Telegram. Works well for areas that have MTProxy or Socks5 blocked.

A simple proxy software made for Telegram. Works well for areas that have MTProxy or Socks5 blocked.

Dec 19, 2022

OwlGram is an unofficial messaging app that uses Telegram's API.

🦉 OwlGram OwlGram is an unofficial messaging app that uses Telegram's API. 🛠 About Reproducible Builds To reproduce the build of OwlGram is only nee

Dec 31, 2022

Discord4J is a fast, powerful, unopinionated, reactive library to enable quick and easy development of Discord bots for Java, Kotlin, and other JVM languages using the official Discord Bot API.

Discord4J is a fast, powerful, unopinionated, reactive library to enable quick and easy development of Discord bots for Java, Kotlin, and other JVM languages using the official Discord Bot API.

Discord4J is a fast, powerful, unopinionated, reactive library to enable quick and easy development of Discord bots for Java, Kotlin, and other JVM languages using the official Discord Bot API.

Jan 4, 2023

An Editor for CSGO:botprofile.db, allows you to create&improve your own bot easily.

botprofileEditor An Editor for CSGO:botprofile.db, allows you to create&improve your own bot easily. 最新信息 项目重构,舍弃了原来复杂的结构 项目打算全力制作web版,使用SpringBoot作为开

Oct 9, 2022

Headless Minecraft bot using cabaletta/baritone and 3arthqu4ke/HeadlessForge

headlessbot Headless Minecraft bot using cabaletta/baritone and 3arthqu4ke/HeadlessForge Build & Run Needs Java 8, Docker, Minecraft 1.12.2 and Forge

Aug 27, 2022

A bot program for Kongregate's Bit Heroes game

This is bot for Bit Heroes, called 99bot on Linux / Windows / MacOS have inspiration from https://github.com/tiemonl/Bit-Heroes-Fishing-Bot Hi, I'm 99

Dec 8, 2022

A completely free Discord music bot that is easy for anyone to set up and run on their machine.

PortableAudioBot A Music Discord bot designed to be portable and easy for anyone to setup and run on their machine. Project is still in early access,

Oct 1, 2022

An example Twitch.tv bot that allows you to manage channel rewards (without requiring a message), and chat messages.

Twitch Bot Example shit code that can be used as a template for a twitch bot that takes advantage of channel rewards (that dont require text input) an

Nov 3, 2022

A simple music player bot for Discord in Java

Delete Discord A simple music player bot for Discord in Java Usage Let's start by running the .jar

Sep 30, 2021

JMusic bot fork with new features and fixes

JMusic bot fork with new features and fixes

JMusicBot-Fork (by d1m0s23) A cross-platform Discord music bot with a clean interface, and that is easy to set up and run yourself! 📋 SetupPage Fork

Nov 18, 2022

A recreation of Discord's Trick'ord Treat bot!

TrickordTreat A recreation of Discord's Trick'ord Treat bot! Don't feel like setting up the bot? Use our publicly hosted version: https://discord.com/

Nov 29, 2022

A simple and scalable Android bot emulation framework, as presented at Black Hat Europe 2021's Arsenal, as well as atHack 2021's Arsenal

m3 A simple and scalable Android bot emulation framework. A detailed explanation can be found here. This project was first published at Black Hat Euro

Aug 20, 2022

LimboFilter - Most powerful bot filtering solution for Minecraft proxies. Built with LimboAPI.

LimboFilter Most powerful bot filtering solution for Minecraft proxies. Built with LimboAPI. MC-Market SpigotMC.org Описание и обсуждение на русском я

Jan 6, 2023

Discord bot for 2b au, nothing useful yet lol

Discord bot for 2b au, nothing useful yet lol

2bot2australia a bot for 2b2t australia :) Commands 2bau.player give you info of the player (only works when the player is on the server) 2bau.info gi

Mar 17, 2022
Owner
KA
菜鶏
KA
This service checks the Co-WIN public API at a specific interval and send update to users specified telegram bot.

COVID VACCINE TELEGRAM BOT USING SPRING BOOT This application is a covid vaccine slot notifier via telegram bot. This application uses public CO-WIN A

Hardeek Sharma 6 Oct 4, 2022
Telegram Bot For U2

Telegram Bot - U2 Tool Box 下载 Release 中的 Jar 文件自行部署,不定时更新 一键部署脚本 在 root 下执行以下命令,仅支持 centos (瞎写的不一定好用 bash <(curl -sSL https://raw.githubusercontent.co

KA 36 Dec 31, 2022
Bot de Telegram que informa del precio del combustible en las gasolineras más próximas a tu ubicación

Telegram BOT Bot de Telegram en JAVA y SQLite. Sirve para consultar los precios de las gasolineras más cercanas a tu ubicación. Los datos son proceden

null 6 Jan 12, 2022
TrashEmail is hosted Telegram bot that can save your private email address by offering disposable email address

TrashEmail is hosted Telegram bot that can save your private email address by offering disposable email address. It can create, manage, disposable email address and link them with your telegram bot chat.

Rohit Sehgal 493 Dec 28, 2022
A Java Telegram bot that provides thirukkural in tamil, english translations with all information!

A Java Telegram bot that provides thirukkural in tamil, english translations with all information!

VINU 5 Oct 19, 2022
Some anti afk bot which prevents you from getting punished for going afk in games. Way of stopping the bot is slightly flawed but we'll ignore that.

AntiAFK Some anti afk bot which prevents you from getting punished for going afk in games. Gui mode coming soon... Installation Install Java 17. Downl

flasky 1 Jan 13, 2022
A hybrid chat android application based on the features of Instagram and Whatsapp having UI just as Telegram.

GupShup About App It is a free online chat android application, enabling user to create a free user account and then log in using the credentials. Aft

Ratik Tiwari 1 May 22, 2022
TMU is very simple app for posting your digital manga as article into Telegraph for further reading using any browser or in Telegram with Instant View.

TMU is very simple app for posting your digital manga as article into Telegraph for further reading using any browser or in Telegram with Instant View. App may be very helpful for content translators that searching easy way to share their work.

null 5 Oct 6, 2022
Telegram for Android source

Telegram messenger for Android Telegram is a messaging app with a focus on speed and security. It’s superfast, simple and free. This repo contains the

DrKLO 21.3k Jan 4, 2023
Catogram - Experimental telegram client based on official Android sources

Catogram Experimental telegram client based on official Android sources Features: Message translator TGX Style of context menu VKUI Icons and inbuilt

null 188 Dec 17, 2022