move gotd fork into repo. (#111)
- update to latest telegram layer - remove some references to fields in tg.Entities that don't exist in the schema - originally added here: https://github.com/beeper/td/commit/820929062a2ba0104397bc01235ab58a9cff780e - referenced here - https://github.com/mautrix/telegramgo/commit/124f0967ed195b5a380c9bd02e170ada9710dde3 - https://github.com/mautrix/telegramgo/commit/4205047aab2e0639217148b5d125bfaab668bd8e
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package markup
|
||||
|
||||
import "go.mau.fi/mautrix-telegram/pkg/gotd/tg"
|
||||
|
||||
// Hide creates markup to hide markup.
|
||||
func Hide() tg.ReplyMarkupClass {
|
||||
return &tg.ReplyKeyboardHide{}
|
||||
}
|
||||
|
||||
// SelectiveHide creates markup to hide markup.
|
||||
// Use this builder if you want to remove the keyboard for specific users only.
|
||||
// Targets:
|
||||
// 1. users that are @mentioned in the text of the Message object;
|
||||
// 2. if the bot's message is a reply (has reply_to_message_id), sender of the original message.
|
||||
//
|
||||
// Example: A user votes in a poll, bot returns confirmation message in reply to the vote
|
||||
// and removes the keyboard for that user, while still showing the keyboard with poll
|
||||
// options to users who haven't voted yet.
|
||||
func SelectiveHide() tg.ReplyMarkupClass {
|
||||
return &tg.ReplyKeyboardHide{
|
||||
Selective: true,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user