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{},
|
||||
})
|
||||
m, err := client.SendMessage(&tdlib.SendMessageRequest{
|
||||
ChatId: chatId,
|
||||
ReplyToMessageId: msgId,
|
||||
ChatId: chatId,
|
||||
ReplyTo: &tdlib.MessageReplyToMessage{
|
||||
ChatId: chatId,
|
||||
MessageId: msgId,
|
||||
},
|
||||
InputMessageContent: &tdlib.InputMessageText{
|
||||
Text: text,
|
||||
},
|
||||
|
|
|
@ -97,8 +97,11 @@ func main() {
|
|||
ParseMode: &tdlib.TextParseModeHTML{},
|
||||
})
|
||||
m, err := client.SendMessage(&tdlib.SendMessageRequest{
|
||||
ChatId: chatId,
|
||||
ReplyToMessageId: msgId,
|
||||
ChatId: chatId,
|
||||
ReplyTo: &tdlib.MessageReplyToMessage{
|
||||
ChatId: chatId,
|
||||
MessageId: msgId,
|
||||
},
|
||||
InputMessageContent: &tdlib.InputMessageText{
|
||||
Text: text,
|
||||
},
|
||||
|
@ -109,8 +112,11 @@ func main() {
|
|||
log.Printf("Message sent, ID: %d", m.Id)
|
||||
case "/repeat":
|
||||
m, err := client.SendMessage(&tdlib.SendMessageRequest{
|
||||
ChatId: chatId,
|
||||
ReplyToMessageId: msgId,
|
||||
ChatId: chatId,
|
||||
ReplyTo: &tdlib.MessageReplyToMessage{
|
||||
ChatId: chatId,
|
||||
MessageId: msgId,
|
||||
},
|
||||
InputMessageContent: &tdlib.InputMessageText{
|
||||
Text: &tdlib.FormattedText{Text: tdlib.CommandArgument(msgText)},
|
||||
},
|
||||
|
|
|
@ -97,8 +97,11 @@ func main() {
|
|||
ParseMode: &tdlib.TextParseModeHTML{},
|
||||
})
|
||||
m, err := client.SendMessage(&tdlib.SendMessageRequest{
|
||||
ChatId: chatId,
|
||||
ReplyToMessageId: msgId,
|
||||
ChatId: chatId,
|
||||
ReplyTo: &tdlib.MessageReplyToMessage{
|
||||
ChatId: chatId,
|
||||
MessageId: msgId,
|
||||
},
|
||||
InputMessageContent: &tdlib.InputMessagePhoto{
|
||||
Photo: &tdlib.InputFileLocal{
|
||||
Path: "./myht9-1486821485193084928.jpg",
|
||||
|
@ -116,8 +119,11 @@ func main() {
|
|||
ParseMode: &tdlib.TextParseModeHTML{},
|
||||
})
|
||||
m, err := client.SendMessageAlbum(&tdlib.SendMessageAlbumRequest{
|
||||
ChatId: chatId,
|
||||
ReplyToMessageId: msgId,
|
||||
ChatId: chatId,
|
||||
ReplyTo: &tdlib.MessageReplyToMessage{
|
||||
ChatId: chatId,
|
||||
MessageId: msgId,
|
||||
},
|
||||
InputMessageContents: []tdlib.InputMessageContent{
|
||||
&tdlib.InputMessagePhoto{
|
||||
Photo: &tdlib.InputFileLocal{
|
||||
|
|
|
@ -91,8 +91,11 @@ func main() {
|
|||
ParseMode: &tdlib.TextParseModeHTML{},
|
||||
})
|
||||
m, err := client.SendMessage(&tdlib.SendMessageRequest{
|
||||
ChatId: chatId,
|
||||
ReplyToMessageId: msgId,
|
||||
ChatId: chatId,
|
||||
ReplyTo: &tdlib.MessageReplyToMessage{
|
||||
ChatId: chatId,
|
||||
MessageId: msgId,
|
||||
},
|
||||
InputMessageContent: &tdlib.InputMessageText{
|
||||
Text: text,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue