156 lines
6.1 KiB
Go
156 lines
6.1 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: telegram_calls.proto
|
|
|
|
package telegram
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
math "math"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type SendMessageParams_ParseMode int32
|
|
|
|
const (
|
|
SendMessageParams_Markdown SendMessageParams_ParseMode = 0
|
|
SendMessageParams_HTML SendMessageParams_ParseMode = 1
|
|
)
|
|
|
|
var SendMessageParams_ParseMode_name = map[int32]string{
|
|
0: "Markdown",
|
|
1: "HTML",
|
|
}
|
|
|
|
var SendMessageParams_ParseMode_value = map[string]int32{
|
|
"Markdown": 0,
|
|
"HTML": 1,
|
|
}
|
|
|
|
func (x SendMessageParams_ParseMode) String() string {
|
|
return proto.EnumName(SendMessageParams_ParseMode_name, int32(x))
|
|
}
|
|
|
|
func (SendMessageParams_ParseMode) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_4d032b4523f3bd85, []int{0, 0}
|
|
}
|
|
|
|
type SendMessageParams struct {
|
|
ChatId int64 `protobuf:"varint,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
|
|
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
|
|
ParseMode SendMessageParams_ParseMode `protobuf:"varint,3,opt,name=parse_mode,json=parseMode,proto3,enum=telegram.SendMessageParams_ParseMode" json:"parse_mode,omitempty"`
|
|
DisableWebPagePreview bool `protobuf:"varint,4,opt,name=disable_web_page_preview,json=disableWebPagePreview,proto3" json:"disable_web_page_preview,omitempty"`
|
|
DisableNotification bool `protobuf:"varint,5,opt,name=disable_notification,json=disableNotification,proto3" json:"disable_notification,omitempty"`
|
|
ReplyToMessageId int64 `protobuf:"varint,6,opt,name=reply_to_message_id,json=replyToMessageId,proto3" json:"reply_to_message_id,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SendMessageParams) Reset() { *m = SendMessageParams{} }
|
|
func (m *SendMessageParams) String() string { return proto.CompactTextString(m) }
|
|
func (*SendMessageParams) ProtoMessage() {}
|
|
func (*SendMessageParams) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_4d032b4523f3bd85, []int{0}
|
|
}
|
|
|
|
func (m *SendMessageParams) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SendMessageParams.Unmarshal(m, b)
|
|
}
|
|
func (m *SendMessageParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SendMessageParams.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *SendMessageParams) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SendMessageParams.Merge(m, src)
|
|
}
|
|
func (m *SendMessageParams) XXX_Size() int {
|
|
return xxx_messageInfo_SendMessageParams.Size(m)
|
|
}
|
|
func (m *SendMessageParams) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SendMessageParams.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SendMessageParams proto.InternalMessageInfo
|
|
|
|
func (m *SendMessageParams) GetChatId() int64 {
|
|
if m != nil {
|
|
return m.ChatId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *SendMessageParams) GetText() string {
|
|
if m != nil {
|
|
return m.Text
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *SendMessageParams) GetParseMode() SendMessageParams_ParseMode {
|
|
if m != nil {
|
|
return m.ParseMode
|
|
}
|
|
return SendMessageParams_Markdown
|
|
}
|
|
|
|
func (m *SendMessageParams) GetDisableWebPagePreview() bool {
|
|
if m != nil {
|
|
return m.DisableWebPagePreview
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *SendMessageParams) GetDisableNotification() bool {
|
|
if m != nil {
|
|
return m.DisableNotification
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *SendMessageParams) GetReplyToMessageId() int64 {
|
|
if m != nil {
|
|
return m.ReplyToMessageId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("telegram.SendMessageParams_ParseMode", SendMessageParams_ParseMode_name, SendMessageParams_ParseMode_value)
|
|
proto.RegisterType((*SendMessageParams)(nil), "telegram.SendMessageParams")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("telegram_calls.proto", fileDescriptor_4d032b4523f3bd85) }
|
|
|
|
var fileDescriptor_4d032b4523f3bd85 = []byte{
|
|
// 294 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0x4f, 0x4b, 0x33, 0x31,
|
|
0x10, 0x87, 0xdf, 0xb4, 0x7d, 0xeb, 0x76, 0x90, 0x52, 0xd3, 0x4a, 0x43, 0x4f, 0x4b, 0x45, 0xd8,
|
|
0x8b, 0x05, 0xf5, 0xe0, 0x17, 0xf0, 0x60, 0xc1, 0x95, 0xb2, 0x16, 0x3c, 0x86, 0x6c, 0x33, 0xd6,
|
|
0xe0, 0xee, 0x26, 0x24, 0xc1, 0xd5, 0x2f, 0xe8, 0xe7, 0x92, 0xfd, 0x8b, 0xe0, 0xed, 0x97, 0x3c,
|
|
0x33, 0xc3, 0x33, 0x03, 0x0b, 0x8f, 0x19, 0x1e, 0xad, 0xc8, 0xf9, 0x41, 0x64, 0x99, 0xdb, 0x18,
|
|
0xab, 0xbd, 0xa6, 0x41, 0xf7, 0xbb, 0x9a, 0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