telegram

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

README

kms-secured-telegram-bot

Provides telegram bot API instance from secret API key using google KMS service

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTelegram

func InitTelegram(ctx context.Context, key KeyData) (*tgbotapi.BotAPI, error)

InitTelegram init telegram client

Types

type KeyData

type KeyData struct {
	Ring     string
	Name     string
	Bucket   string
	Filename string
}

KeyData contains data neeed to decrypt secured telegram API key: KMS key ring and name for decryption, Storage bucket and filename to locate encrypted API key

Jump to

Keyboard shortcuts

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