Discover Packages
github.com/phuonganhniie/botbot-leetcode
model
package
Version:
v0.0.0-...-5d21454
Opens a new window with list of versions in this module.
Published: Oct 23, 2024
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Challenge struct {
Id string `json:"questionFrontendId"`
Name string `json:"questionTitle"`
QuestionLink string `json:"questionLink"`
Difficulty string `json:"difficulty"`
}
type Chat struct {
ID int64 `json:"id"`
FirstName string `json:"first_name"`
LastName string `json:"last_name,omitempty"`
Username string `json:"username"`
Type string `json:"type"`
}
type Entity struct {
Offset int `json:"offset"`
Length int `json:"length"`
Type string `json:"type"`
}
type Message struct {
MessageID int64 `json:"message_id"`
From User `json:"from"`
Chat Chat `json:"chat"`
Date int64 `json:"date"`
Text string `json:"text"`
Entities []Entity `json:"entities,omitempty"`
}
type TelegramResponse struct {
Ok bool `json:"ok"`
Result []Update `json:"result"`
}
type Update struct {
UpdateID int64 `json:"update_id"`
Message Message `json:"message"`
}
type User struct {
ID int64 `json:"id"`
IsBot bool `json:"is_bot"`
FirstName string `json:"first_name"`
LastName string `json:"last_name,omitempty"`
Username string `json:"username"`
LanguageCode string `json:"language_code"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.