@@ -1042,3 +1042,35 @@ func (a API) SendGift(userID int64, giftID string, opts *GiftOptions) (res APIRe
10421042 vals .Set ("gift_id" , giftID )
10431043 return res , client .get (a .base , "sendGift" , addValues (vals , opts ), & res )
10441044}
1045+
1046+ // VerifyUser verifies a user on behalf of the organization which is represented by the bot.
1047+ func (a API ) VerifyUser (userID int64 , opts * VerifyOptions ) (res APIResponseBool , err error ) {
1048+ var vals = make (url.Values )
1049+
1050+ vals .Set ("user_id" , itoa (userID ))
1051+ return res , client .get (a .base , "verifyUser" , addValues (vals , opts ), & res )
1052+ }
1053+
1054+ // VerifyChat verifies a chat on behalf of the organization which is represented by the bot.
1055+ func (a API ) VerifyChat (chatID int64 , opts * VerifyOptions ) (res APIResponseBool , err error ) {
1056+ var vals = make (url.Values )
1057+
1058+ vals .Set ("chat_id" , itoa (chatID ))
1059+ return res , client .get (a .base , "verifyChat" , addValues (vals , opts ), & res )
1060+ }
1061+
1062+ // RemoveUserVerification removes verification from a user who is currently verified on behalf of the organization represented by the bot.
1063+ func (a API ) RemoveUserVerification (userID int64 ) (res APIResponseBool , err error ) {
1064+ var vals = make (url.Values )
1065+
1066+ vals .Set ("user_id" , itoa (userID ))
1067+ return res , client .get (a .base , "verifyUser" , vals , & res )
1068+ }
1069+
1070+ // RemoveChatVerification removes verification from a chat who is currently verified on behalf of the organization represented by the bot.
1071+ func (a API ) RemoveChatVerification (chatID int64 ) (res APIResponseBool , err error ) {
1072+ var vals = make (url.Values )
1073+
1074+ vals .Set ("chat_id" , itoa (chatID ))
1075+ return res , client .get (a .base , "verifyChat" , vals , & res )
1076+ }
0 commit comments