source-telegram

command module
v0.0.0-...-44b694c Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: AGPL-3.0 Imports: 24 Imported by: 0

README

source-telegram

Before deploying:

kubectl create secret generic source-telegram-tokens \
  --from-literal=ids=<TG_APP_ID_0>,<TG_APP_ID_1>,... \
  --from-literal=hashes=<TG_APP_HASH_0>,<TG_APP_HASH_1>,... \
  --from-literal=phones=<TG_PHONE_NUM_0>,<TG_PHONE_NUM_1>,...

Once deployed in K8s, it requires a manual code input to complete the Telegram authentication. Get a pod shell, run:

echo ##### > tgcodein

Example request:

grpcurl \
  -plaintext \
  -proto api/grpc/service.proto \
  -d '{ "limit": 10, "cursor": "https://t.me/astroalert"}' \
  localhost:50051 \
  awakari.source.telegram.Service/List

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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