reTGanslatorBot

package module
v0.0.0-...-2d279c2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2023 License: MIT Imports: 10 Imported by: 0

README

Deploy webhook

  1. Make sure you have gcloud installed and executed gcloud auth login
  2. Put the correct configuration in the config.json
  3. export BOT_TOKEN=<your_bot_token>
  4. make deploy

Run membership validation

export TG_API_ID=165292; export TG_API_HASH=940c7531dccfff4876cda02d52fe6771503b8fb57b; python daemon/main.py

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(updater updater, token string) *Server

func NewServerFromEnv

func NewServerFromEnv() *Server

func (Server) ServeHTTP

func (s Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL