Update to TDLib 1.8.15

This commit is contained in:
c0re100 2023-07-25 02:35:55 +08:00
parent e722882047
commit 7a1c7f37a2
No known key found for this signature in database
GPG key ID: 7C3B3004FE745AAF
8 changed files with 5165 additions and 856 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -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,
}, },

View file

@ -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)},
}, },

View file

@ -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{

View file

@ -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,
}, },