Affected by GO-2023-2036
and 16 other vulnerabilities
GO-2023-2036 : usememos/memos vulnerable to privilege escalation in github.com/usememos/memos
GO-2023-2038 : Account TakeOver Due to Improper Handling of JWT Tokens in usememos/memos in github.com/usememos/memos
GO-2023-2065 : Cross-Site Request Forgery (CSRF) in usememos/memos in github.com/usememos/memos
GO-2024-3046 : memos vulnerable to Server-Side Request Forgery in /api/resource in github.com/usememos/memos
GO-2024-3047 : memos vulnerable to Server-Side Request Forgery in /o/get/httpmeta in github.com/usememos/memos
GO-2024-3049 : memos vulnerable to Server-Side Request Forgery and Cross-site Scripting in github.com/usememos/memos
GO-2024-3088 : memos CORS Misconfiguration in server.go (GHSL-2024-034) in github.com/usememos/memos
GO-2025-3492 : Memos Server-Side Request Forgery (SSRF) in github.com/usememos/memos
GO-2025-3831 : Memos has Cross-Site Scripting (XSS) Vulnerability in Image URLs in github.com/usememos/memos
GO-2025-3936 : Memos Vulnerable to Path Traversal via the CreateResource Endpoint in github.com/usememos/memos
GO-2025-3937 : Memos Vulnerable to Stored Cross-Site Scripting in github.com/usememos/memos
GO-2025-4127 : Memos' Access Tokens Stay Valid after User Password Change in github.com/usememos/memos
GO-2025-4215 : memos vulnerability allows arbitrarily reactions deletion in github.com/usememos/memos
GO-2025-4216 : memos vulnerability allows arbitrarily modification or deletion of attachments in github.com/usememos/memos
GO-2025-4217 : memos vulnerability allows the creation of arbitrary accounts in github.com/usememos/memos
GO-2025-4218 : memos lacks file name validation or verification in github.com/usememos/memos
GO-2025-4220 : memos vulnerability allows arbitrarily modification or deletion registered identity providers in github.com/usememos/memos
Discover Packages
github.com/usememos/memos
plugin
telegram
package
Version:
v0.13.1
Opens a new window with list of versions in this module.
Published: May 27, 2023
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Variables
type Chat
type File
type Handler
type Message
type PhotoSize
type Robot
func (r *Robot) EditMessage(ctx context.Context, chatID, messageID int, text string) (*Message, error)
func (r *Robot) GetFile(ctx context.Context, fileID string) (*File, error)
func (r *Robot) GetUpdates(ctx context.Context, offset int) ([]Update, error)
func (r *Robot) SendReplyMessage(ctx context.Context, chatID, replyID int, text string) (*Message, error)
func (r *Robot) Start(ctx context.Context)
type Update
type User
type Chat struct {
ID int `json:"id"`
Title string `json:"title"`
Type string `json:"type"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
}
type File struct {
FileID string `json:"file_id"`
FileUniqueID string `json:"file_unique_id"`
FileSize int64 `json:"file_size"`
FilePath string `json:"file_path"`
}
type Message struct {
MessageID int `json:"message_id"`
From User `json:"from"`
Date int `json:"date"`
Text *string `json:"text"`
Chat *Chat `json:"chat"`
MediaGroupID *string `json:"media_group_id"`
Photo []PhotoSize `json:"photo"`
Caption *string `json:"caption"`
}
type PhotoSize struct {
FileID string `json:"file_id"`
FileUniqueID string `json:"file_unique_id"`
FileSize int64 `json:"file_size"`
Width int `json:"width"`
Height int `json:"height"`
}
NewRobotWithHandler create a telegram robot with specified handler.
EditMessage make an editMessageText api request.
GetFile get download info of File by fileID from Telegram.
GetUpdates make a getUpdates api request.
SendReplyMessage make a sendMessage api request.
Start start an infinity call of getUpdates from Telegram, call r.MessageHandle while get new message updates.
type Update struct {
UpdateID int `json:"update_id"`
Message *Message `json:"message"`
}
type User struct {
ID int `json:"id"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.