Skip to content

skar404/telegram-get-id

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram bot /get-id

Bot send id: Channel, Private Channel, User or Group

Tg bot:


Example:


Run app:

export MOD=GET_UPDATES
export BOT_TOKEN=BOK_TOKEN

go run main.go

Run app in docker:

docker build . -t telegram-get-id
docker run --env=MOD=GET_UPDATES --env=BOT_TOKEN=BOK_TOKEN telegram-get-id 

App mode:

  • GET_UPDATES:
MOD=GET_UPDATES
BOT_TOKEN=BOK_TOKEN
  • WEB_HOOK:
MOD=WEB_HOOK
BOT_TOKEN=BOK_TOKEN
APP_HOST=https://app-host/ # local: https://****.ngrok.io/
PORT=8080 # Optional 
DEBUG=true # Optional

About

Telegram bot send id: Channel, Private Channel, User or Group

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published