Affected by GO-2023-2065
and 14 other vulnerabilities
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.2
Opens a new window with list of versions in this module.
Published: Jul 1, 2023
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
Types
type Bot
NewBotWithHandler(h)
(b) AnswerCallbackQuery(ctx, callbackQueryID, text)
(b) EditMessage(ctx, chatID, messageID, text, inlineKeyboards)
(b) GetFile(ctx, fileID)
(b) GetUpdates(ctx, offset)
(b) SendReplyMessage(ctx, chatID, replyID, text)
(b) Start(ctx)
type CallbackQuery
type Chat
type File
type Handler
type InlineKeyboardButton
type Message
type PhotoSize
type Update
type User
Source Files
Documentation
Documentation
¶
Variables
type Bot
func (b *Bot) AnswerCallbackQuery(ctx context.Context, callbackQueryID, text string) error
func (b *Bot) EditMessage(ctx context.Context, chatID, messageID int, text string, ...) (*Message, error)
func (b *Bot) GetFile(ctx context.Context, fileID string) (*File, error)
func (b *Bot) GetUpdates(ctx context.Context, offset int) ([]Update, error)
func (b *Bot) SendReplyMessage(ctx context.Context, chatID, replyID int, text string) (*Message, error)
func (b *Bot) Start(ctx context.Context)
type CallbackQuery
type Chat
type File
type Handler
type InlineKeyboardButton
type Message
type PhotoSize
type Update
type User
NewBotWithHandler create a telegram bot with specified handler.
AnswerCallbackQuery make an answerCallbackQuery api request.
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 CallbackQuery struct {
ID string `json:"id"`
From User `json:"from"`
Message *Message `json:"message"`
InlineMessageID string `json:"inline_message_id"`
ChatInstance string `json:"chat_instance"`
Data string `json:"data"`
GameShortName string `json:"game_short_name"`
}
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 InlineKeyboardButton struct {
Text string `json:"text"`
CallbackData string `json:"callback_data"`
}
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"`
}
type Update struct {
UpdateID int `json:"update_id"`
Message *Message `json:"message"`
CallbackQuery *CallbackQuery `json:"callback_query"`
}
type User struct {
ID int `json:"id"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.