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
|
@ -87,7 +87,10 @@ func main() {
|
||||||
})
|
})
|
||||||
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,
|
||||||
},
|
},
|
||||||
|
|
|
@ -98,7 +98,10 @@ func main() {
|
||||||
})
|
})
|
||||||
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,
|
||||||
},
|
},
|
||||||
|
@ -110,7 +113,10 @@ func main() {
|
||||||
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)},
|
||||||
},
|
},
|
||||||
|
|
|
@ -98,7 +98,10 @@ func main() {
|
||||||
})
|
})
|
||||||
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",
|
||||||
|
@ -117,7 +120,10 @@ func main() {
|
||||||
})
|
})
|
||||||
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{
|
||||||
|
|
|
@ -92,7 +92,10 @@ func main() {
|
||||||
})
|
})
|
||||||
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