Highly-opinionated (ex-bullshit-free) MTPROTO proxy for Telegram. If you use v1.0 or upgrade broke you proxy, please read the chapter Version 2
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

main.go 341B

12345678910111213141516171819202122
  1. package main
  2. import (
  3. "math/rand"
  4. "time"
  5. "github.com/9seconds/mtg/v2/cli"
  6. "github.com/alecthomas/kong"
  7. )
  8. var version = "dev" // has to be set by ldflags
  9. func main() {
  10. rand.Seed(time.Now().UTC().UnixNano())
  11. cli := &cli.CLI{}
  12. ctx := kong.Parse(cli, kong.Vars{
  13. "version": version,
  14. })
  15. ctx.FatalIfErrorf(ctx.Run(cli, version))
  16. }