telegram

package
v0.2.35 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(token, chatID, message string) error

Send posts a message to a Telegram chat via the Bot API.

func SendAudio added in v0.2.6

func SendAudio(token, chatID, wavPath, caption string) error

SendAudio uploads a WAV file to a Telegram chat via the Bot API. The caption is sent as text alongside the audio file.

func SendVoice added in v0.2.9

func SendVoice(token, chatID, oggPath, caption string) error

SendVoice uploads an OGG/OPUS file to a Telegram chat via the Bot API. Renders as a native voice bubble in Telegram clients.

Types

This section is empty.

Jump to

Keyboard shortcuts

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