@@ -1057,7 +1057,13 @@ describe('TelegramBot', function telegramSuite() {
1057
1057
return bot . sendLocation ( USERID , lat , long , opts ) . then ( resp => { message = resp ; } ) ;
1058
1058
} ) ;
1059
1059
it ( 'edits live location' , function test ( ) {
1060
- const opts = { chat_id : USERID , message_id : message . message_id } ;
1060
+ const replyMarkup = JSON . stringify ( {
1061
+ inline_keyboard : [ [ {
1062
+ text : 'Test button' ,
1063
+ callback_data : 'test'
1064
+ } ] ]
1065
+ } ) ;
1066
+ const opts = { chat_id : USERID , message_id : message . message_id , reply_markup : replyMarkup } ;
1061
1067
return bot . editMessageLiveLocation ( lat + 1 , long + 1 , opts ) . then ( resp => {
1062
1068
assert . ok ( is . object ( resp ) ) ;
1063
1069
assert . ok ( is . object ( resp . location ) ) ;
@@ -1074,7 +1080,13 @@ describe('TelegramBot', function telegramSuite() {
1074
1080
return bot . sendLocation ( USERID , lat , long , { live_period : 86400 } )
1075
1081
. then ( ( resp ) => {
1076
1082
message = resp ;
1077
- const opts = { chat_id : USERID , message_id : message . message_id } ;
1083
+ const replyMarkup = JSON . stringify ( {
1084
+ inline_keyboard : [ [ {
1085
+ text : 'Test button' ,
1086
+ callback_data : 'test'
1087
+ } ] ]
1088
+ } ) ;
1089
+ const opts = { chat_id : USERID , message_id : message . message_id , reply_markup : replyMarkup } ;
1078
1090
return bot . editMessageLiveLocation ( lat + 1 , long + 1 , opts ) ;
1079
1091
} ) ;
1080
1092
} ) ;
@@ -1367,7 +1379,7 @@ describe('TelegramBot', function telegramSuite() {
1367
1379
const payload = 'sku-p001' ;
1368
1380
const providerToken = PROVIDER_TOKEN ;
1369
1381
const startParameter = 'pay' ;
1370
- const currency = 'KES ' ;
1382
+ const currency = 'USD ' ;
1371
1383
const prices = [ { label : 'product' , amount : 11000 } , { label : 'tax' , amount : 11000 } ] ;
1372
1384
return bot . sendInvoice ( USERID , title , description , payload , providerToken , startParameter , currency , prices ) . then ( resp => {
1373
1385
assert . ok ( is . object ( resp ) ) ;
0 commit comments