telegram

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompleteAuthentication

func CompleteAuthentication(ctx context.Context, phoneNumber, code, phoneCodeHash, password string) (*tg.AuthAuthorization, error)

CompleteAuthentication uses the provided code to authenticate with Telegram. CompleteAuthentication uses the provided code to authenticate with Telegram.

func FetchChannelMessages

func FetchChannelMessages(ctx context.Context, username string) ([]*tg.Message, error)

FetchChannelMessages Fetch messages from a group

func GetClient

func GetClient() (*telegram.Client, error)

func ScrapeTelegramMessagesForSentiment

func ScrapeTelegramMessagesForSentiment(ctx context.Context, username string, model string, prompt string) (string, string, error)

ScrapeTelegramMessagesForSentiment scrapes messages from a Telegram channel and analyzes their sentiment.

func StartAuthentication

func StartAuthentication(ctx context.Context, phoneNumber string) (string, error)

StartAuthentication sends the phone number to Telegram and requests a code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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