Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TelegramClient ¶
type TelegramClient interface { GetUserFromApi(client *telegram.Client, username, phone *string) (*data.User, error) GetChatUsersFromApi(chat Chat) ([]data.User, error) GetChatUserFromApi(user data.User, chat Chat) (*data.User, error) SearchByFromApi(username, phone *string, amount int) ([]data.User, error) GetChatFromApi(title string) ([]Chat, error) AddUserInChatFromApi(user data.User, chat Chat) error UpdateUserInChatFromApi(user data.User, chat Chat) error DeleteFromChatFromApi(user data.User, chat Chat) error SendMessageFromApi(info data.MessageInfo) error GenerateChatLinkFromApi(chat Chat) (string, error) GetChatPhotoFromApi(filename *string, chat Chat) (string, error) GetTg() *tgInfo GetSuperClient() *telegram.Client GetUsualClient() *telegram.Client }
func TelegramClientInstance ¶
func TelegramClientInstance(ctx context.Context) TelegramClient
Click to show internal directories.
Click to hide internal directories.