Update to TDLib 1.8.15
This commit is contained in:
parent
e722882047
commit
7a1c7f37a2
1420
client/function.go
1420
client/function.go
File diff suppressed because it is too large
Load diff
2624
client/type.go
2624
client/type.go
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
812
data/td_api.tl
812
data/td_api.tl
File diff suppressed because it is too large
Load diff
|
@ -86,8 +86,11 @@ func main() {
|
||||||
ParseMode: &tdlib.TextParseModeHTML{},
|
ParseMode: &tdlib.TextParseModeHTML{},
|
||||||
})
|
})
|
||||||
m, err := client.SendMessage(&tdlib.SendMessageRequest{
|
m, err := client.SendMessage(&tdlib.SendMessageRequest{
|
||||||
ChatId: chatId,
|
ChatId: chatId,
|
||||||
ReplyToMessageId: msgId,
|
ReplyTo: &tdlib.MessageReplyToMessage{
|
||||||
|
ChatId: chatId,
|
||||||
|
MessageId: msgId,
|
||||||
|
},
|
||||||
InputMessageContent: &tdlib.InputMessageText{
|
InputMessageContent: &tdlib.InputMessageText{
|
||||||
Text: text,
|
Text: text,
|
||||||
},
|
},
|
||||||
|
|
|
@ -97,8 +97,11 @@ func main() {
|
||||||
ParseMode: &tdlib.TextParseModeHTML{},
|
ParseMode: &tdlib.TextParseModeHTML{},
|
||||||
})
|
})
|
||||||
m, err := client.SendMessage(&tdlib.SendMessageRequest{
|
m, err := client.SendMessage(&tdlib.SendMessageRequest{
|
||||||
ChatId: chatId,
|
ChatId: chatId,
|
||||||
ReplyToMessageId: msgId,
|
ReplyTo: &tdlib.MessageReplyToMessage{
|
||||||
|
ChatId: chatId,
|
||||||
|
MessageId: msgId,
|
||||||
|
},
|
||||||
InputMessageContent: &tdlib.InputMessageText{
|
InputMessageContent: &tdlib.InputMessageText{
|
||||||
Text: text,
|
Text: text,
|
||||||
},
|
},
|
||||||
|
@ -109,8 +112,11 @@ func main() {
|
||||||
log.Printf("Message sent, ID: %d", m.Id)
|
log.Printf("Message sent, ID: %d", m.Id)
|
||||||
case "/repeat":
|
case "/repeat":
|
||||||
m, err := client.SendMessage(&tdlib.SendMessageRequest{
|
m, err := client.SendMessage(&tdlib.SendMessageRequest{
|
||||||
ChatId: chatId,
|
ChatId: chatId,
|
||||||
ReplyToMessageId: msgId,
|
ReplyTo: &tdlib.MessageReplyToMessage{
|
||||||
|
ChatId: chatId,
|
||||||
|
MessageId: msgId,
|
||||||
|
},
|
||||||
InputMessageContent: &tdlib.InputMessageText{
|
InputMessageContent: &tdlib.InputMessageText{
|
||||||
Text: &tdlib.FormattedText{Text: tdlib.CommandArgument(msgText)},
|
Text: &tdlib.FormattedText{Text: tdlib.CommandArgument(msgText)},
|
||||||
},
|
},
|
||||||
|
|
|
@ -97,8 +97,11 @@ func main() {
|
||||||
ParseMode: &tdlib.TextParseModeHTML{},
|
ParseMode: &tdlib.TextParseModeHTML{},
|
||||||
})
|
})
|
||||||
m, err := client.SendMessage(&tdlib.SendMessageRequest{
|
m, err := client.SendMessage(&tdlib.SendMessageRequest{
|
||||||
ChatId: chatId,
|
ChatId: chatId,
|
||||||
ReplyToMessageId: msgId,
|
ReplyTo: &tdlib.MessageReplyToMessage{
|
||||||
|
ChatId: chatId,
|
||||||
|
MessageId: msgId,
|
||||||
|
},
|
||||||
InputMessageContent: &tdlib.InputMessagePhoto{
|
InputMessageContent: &tdlib.InputMessagePhoto{
|
||||||
Photo: &tdlib.InputFileLocal{
|
Photo: &tdlib.InputFileLocal{
|
||||||
Path: "./myht9-1486821485193084928.jpg",
|
Path: "./myht9-1486821485193084928.jpg",
|
||||||
|
@ -116,8 +119,11 @@ func main() {
|
||||||
ParseMode: &tdlib.TextParseModeHTML{},
|
ParseMode: &tdlib.TextParseModeHTML{},
|
||||||
})
|
})
|
||||||
m, err := client.SendMessageAlbum(&tdlib.SendMessageAlbumRequest{
|
m, err := client.SendMessageAlbum(&tdlib.SendMessageAlbumRequest{
|
||||||
ChatId: chatId,
|
ChatId: chatId,
|
||||||
ReplyToMessageId: msgId,
|
ReplyTo: &tdlib.MessageReplyToMessage{
|
||||||
|
ChatId: chatId,
|
||||||
|
MessageId: msgId,
|
||||||
|
},
|
||||||
InputMessageContents: []tdlib.InputMessageContent{
|
InputMessageContents: []tdlib.InputMessageContent{
|
||||||
&tdlib.InputMessagePhoto{
|
&tdlib.InputMessagePhoto{
|
||||||
Photo: &tdlib.InputFileLocal{
|
Photo: &tdlib.InputFileLocal{
|
||||||
|
|
|
@ -91,8 +91,11 @@ func main() {
|
||||||
ParseMode: &tdlib.TextParseModeHTML{},
|
ParseMode: &tdlib.TextParseModeHTML{},
|
||||||
})
|
})
|
||||||
m, err := client.SendMessage(&tdlib.SendMessageRequest{
|
m, err := client.SendMessage(&tdlib.SendMessageRequest{
|
||||||
ChatId: chatId,
|
ChatId: chatId,
|
||||||
ReplyToMessageId: msgId,
|
ReplyTo: &tdlib.MessageReplyToMessage{
|
||||||
|
ChatId: chatId,
|
||||||
|
MessageId: msgId,
|
||||||
|
},
|
||||||
InputMessageContent: &tdlib.InputMessageText{
|
InputMessageContent: &tdlib.InputMessageText{
|
||||||
Text: text,
|
Text: text,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue