Skip to content

Simple get telegram user id bot written by python-telegram-bot

Notifications You must be signed in to change notification settings

jerry12122/Telegram-UID-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram-UID-Bot

hackmd-github-sync-badge

這個機器人是利用python-telegram-bot套件所開發

功能

  • 輸入指令:/user -回傳 userID
  • 輸入其他訊息則回復使用方法

安裝

複製.env.sample.env並設定TOKEN

cp .env.sample .env

安裝套件

 pip3 install --user -r requirements.txt

Run

pyhton3 bot.py

設定 systemd

編輯 bot.service

ExecStart=/usr/bin/python3 /root/tgbot/bot.py更換為你的專案目錄

啟動服務

cp ./bot.service /lib/systemd/system/
systemctl daemon-reload
systemctl enable bot
systemctl start bot

查看執行狀態

service bot status

About

Simple get telegram user id bot written by python-telegram-bot

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published