telegram-bot-api-nodejs 1.0.36 → 1.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"AED":{"code":"AED","title":"United Arab Emirates Dirham","symbol":"AED","native":"د.إ.‏","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"367","max_amount":"3673042"},"AFN":{"code":"AFN","title":"Afghan Afghani","symbol":"AFN","native":"؋","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"7066","max_amount":"70662861"},"ALL":{"code":"ALL","title":"Albanian Lek","symbol":"ALL","native":"Lek","thousands_sep":".","decimal_sep":",","symbol_left":false,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"9051","max_amount":"90507906"},"AMD":{"code":"AMD","title":"Armenian Dram","symbol":"AMD","native":"դր.","thousands_sep":",","decimal_sep":".","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"38684","max_amount":"386842463"},"ARS":{"code":"ARS","title":"Argentine Peso","symbol":"ARS","native":"$","thousands_sep":".","decimal_sep":",","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"93721","max_amount":"937212269"},"AUD":{"code":"AUD","title":"Australian Dollar","symbol":"AU$","native":"$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"150","max_amount":"1499251"},"AZN":{"code":"AZN","title":"Azerbaijani Manat","symbol":"AZN","native":"ман.","thousands_sep":" ","decimal_sep":",","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"170","max_amount":"1703970"},"BAM":{"code":"BAM","title":"Bosnia & Herzegovina Convertible Mark","symbol":"BAM","native":"KM","thousands_sep":".","decimal_sep":",","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"177","max_amount":"1772280"},"BDT":{"code":"BDT","title":"Bangladeshi Taka","symbol":"BDT","native":"৳","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"11706","max_amount":"117058584"},"BGN":{"code":"BGN","title":"Bulgarian Lev","symbol":"BGN","native":"лв.","thousands_sep":" ","decimal_sep":",","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"177","max_amount":"1772371"},"BHD":{"code":"BHD","title":"Bahraini dinar","symbol":"BHD","native":"د.ب.‏","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":3,"min_amount":"376","max_amount":"3755150"},"BND":{"code":"BND","title":"Brunei Dollar","symbol":"BND","native":"$","thousands_sep":".","decimal_sep":",","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"131","max_amount":"1313941"},"BOB":{"code":"BOB","title":"Bolivian Boliviano","symbol":"BOB","native":"Bs","thousands_sep":".","decimal_sep":",","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"688","max_amount":"6884147"},"BRL":{"code":"BRL","title":"Brazilian Real","symbol":"R$","native":"R$","thousands_sep":".","decimal_sep":",","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"546","max_amount":"5464003"},"BYN":{"code":"BYN","title":"Belarusian ruble","symbol":"BYN","native":"BYN","thousands_sep":" ","decimal_sep":",","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"326","max_amount":"3260296"},"CAD":{"code":"CAD","title":"Canadian Dollar","symbol":"CA$","native":"$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"137","max_amount":"1368550"},"CHF":{"code":"CHF","title":"Swiss Franc","symbol":"CHF","native":"CHF","thousands_sep":"'","decimal_sep":".","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"87","max_amount":"866072"},"CLP":{"code":"CLP","title":"Chilean Peso","symbol":"CLP","native":"$","thousands_sep":".","decimal_sep":",","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":0,"min_amount":"929","max_amount":"9291922"},"CNY":{"code":"CNY","title":"Chinese Renminbi Yuan","symbol":"CN¥","native":"CN¥","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"717","max_amount":"7165041"},"COP":{"code":"COP","title":"Colombian Peso","symbol":"COP","native":"$","thousands_sep":".","decimal_sep":",","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"399964","max_amount":"3999637533"},"CRC":{"code":"CRC","title":"Costa Rican Colón","symbol":"CRC","native":"₡","thousands_sep":".","decimal_sep":",","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"52404","max_amount":"524036065"},"CZK":{"code":"CZK","title":"Czech Koruna","symbol":"CZK","native":"Kč","thousands_sep":" ","decimal_sep":",","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"2284","max_amount":"22841204"},"DKK":{"code":"DKK","title":"Danish Krone","symbol":"DKK","native":"kr","thousands_sep":"","decimal_sep":",","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"677","max_amount":"6765604"},"DOP":{"code":"DOP","title":"Dominican Peso","symbol":"DOP","native":"$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"5957","max_amount":"59571383"},"DZD":{"code":"DZD","title":"Algerian Dinar","symbol":"DZD","native":"د.ج.‏","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"13413","max_amount":"134133478"},"EGP":{"code":"EGP","title":"Egyptian Pound","symbol":"EGP","native":"ج.م.‏","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"4886","max_amount":"48860496"},"ETB":{"code":"ETB","title":"Ethiopian Birr","symbol":"ETB","native":"ብር","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"10504","max_amount":"105042091"},"EUR":{"code":"EUR","title":"Euro","symbol":"€","native":"€","thousands_sep":" ","decimal_sep":",","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"91","max_amount":"906250"},"GBP":{"code":"GBP","title":"British Pound","symbol":"£","native":"£","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"77","max_amount":"772589"},"GEL":{"code":"GEL","title":"Georgian Lari","symbol":"GEL","native":"GEL","thousands_sep":" ","decimal_sep":",","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"269","max_amount":"2685040"},"GHS":{"code":"GHS","title":"Ghanaian cedi","symbol":"GHS","native":"GHS","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"1554","max_amount":"15541661"},"GTQ":{"code":"GTQ","title":"Guatemalan Quetzal","symbol":"GTQ","native":"Q","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"772","max_amount":"7716007"},"HKD":{"code":"HKD","title":"Hong Kong Dollar","symbol":"HK$","native":"$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"779","max_amount":"7794490"},"HNL":{"code":"HNL","title":"Honduran Lempira","symbol":"HNL","native":"L","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"2468","max_amount":"24683068"},"HRK":{"code":"HRK","title":"Croatian Kuna","symbol":"HRK","native":"kn","thousands_sep":".","decimal_sep":",","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"687","max_amount":"6868089"},"HUF":{"code":"HUF","title":"Hungarian Forint","symbol":"HUF","native":"Ft","thousands_sep":" ","decimal_sep":",","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"35712","max_amount":"357115040"},"IDR":{"code":"IDR","title":"Indonesian Rupiah","symbol":"IDR","native":"Rp","thousands_sep":".","decimal_sep":",","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"1569770","max_amount":"15697700000"},"ILS":{"code":"ILS","title":"Israeli New Sheqel","symbol":"₪","native":"₪","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"367","max_amount":"3668280"},"INR":{"code":"INR","title":"Indian Rupee","symbol":"₹","native":"₹","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"8388","max_amount":"83875750"},"IQD":{"code":"IQD","title":"Iraqi dinar","symbol":"IQD","native":"د.ع.‏","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":3,"min_amount":"1305061","max_amount":"13050609400"},"IRR":{"code":"IRR","title":"Iranian rial","symbol":"IRR","native":"ريال","thousands_sep":",","decimal_sep":"\/","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"4210500","max_amount":"42105000352"},"ISK":{"code":"ISK","title":"Icelandic Króna","symbol":"ISK","native":"kr","thousands_sep":".","decimal_sep":",","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":0,"min_amount":"138","max_amount":"1383204"},"JMD":{"code":"JMD","title":"Jamaican Dollar","symbol":"JMD","native":"$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"15641","max_amount":"156413393"},"JOD":{"code":"JOD","title":"Jordanian dinar","symbol":"JOD","native":"JOD","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":3,"min_amount":"709","max_amount":"7087040"},"JPY":{"code":"JPY","title":"Japanese Yen","symbol":"¥","native":"¥","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":0,"min_amount":"148","max_amount":"1475940"},"KES":{"code":"KES","title":"Kenyan Shilling","symbol":"KES","native":"Ksh","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"12851","max_amount":"128512528"},"KGS":{"code":"KGS","title":"Kyrgyzstani Som","symbol":"KGS","native":"KGS","thousands_sep":" ","decimal_sep":"-","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"8570","max_amount":"85703799"},"KRW":{"code":"KRW","title":"South Korean Won","symbol":"₩","native":"₩","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":0,"min_amount":"1350","max_amount":"13499704"},"KZT":{"code":"KZT","title":"Kazakhstani Tenge","symbol":"KZT","native":"₸","thousands_sep":" ","decimal_sep":"-","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"47755","max_amount":"477549726"},"LBP":{"code":"LBP","title":"Lebanese Pound","symbol":"LBP","native":"ل.ل.‏","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"8921327","max_amount":"89213266277"},"LKR":{"code":"LKR","title":"Sri Lankan Rupee","symbol":"LKR","native":"රු.","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"29759","max_amount":"297594128"},"MAD":{"code":"MAD","title":"Moroccan Dirham","symbol":"MAD","native":"د.م.‏","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"974","max_amount":"9737574"},"MDL":{"code":"MDL","title":"Moldovan Leu","symbol":"MDL","native":"MDL","thousands_sep":",","decimal_sep":".","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"1748","max_amount":"17483576"},"MMK":{"code":"MMK","title":"Myanmar kyat","symbol":"MMK","native":"MMK","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"324796","max_amount":"3247960992"},"MNT":{"code":"MNT","title":"Mongolian Tögrög","symbol":"MNT","native":"MNT","thousands_sep":" ","decimal_sep":",","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"339800","max_amount":"3397999407"},"MOP":{"code":"MOP","title":"Macanese pataca","symbol":"MOP","native":"MOP","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"800","max_amount":"7999909"},"MUR":{"code":"MUR","title":"Mauritian Rupee","symbol":"MUR","native":"MUR","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"4623","max_amount":"46230378"},"MVR":{"code":"MVR","title":"Maldivian Rufiyaa","symbol":"MVR","native":"MVR","thousands_sep":",","decimal_sep":".","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"1541","max_amount":"15410378"},"MXN":{"code":"MXN","title":"Mexican Peso","symbol":"MX$","native":"$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"1865","max_amount":"18645540"},"MYR":{"code":"MYR","title":"Malaysian Ringgit","symbol":"MYR","native":"RM","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"443","max_amount":"4431504"},"MZN":{"code":"MZN","title":"Mozambican Metical","symbol":"MZN","native":"MTn","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"6390","max_amount":"63899991"},"NGN":{"code":"NGN","title":"Nigerian Naira","symbol":"NGN","native":"₦","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"159010","max_amount":"1590103725"},"NIO":{"code":"NIO","title":"Nicaraguan Córdoba","symbol":"NIO","native":"C$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"3667","max_amount":"36672557"},"NOK":{"code":"NOK","title":"Norwegian Krone","symbol":"NOK","native":"kr","thousands_sep":" ","decimal_sep":",","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"1067","max_amount":"10674075"},"NPR":{"code":"NPR","title":"Nepalese Rupee","symbol":"NPR","native":"नेरू","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"13381","max_amount":"133809071"},"NZD":{"code":"NZD","title":"New Zealand Dollar","symbol":"NZ$","native":"$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"165","max_amount":"1651678"},"PAB":{"code":"PAB","title":"Panamanian Balboa","symbol":"PAB","native":"B\/.","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"100","max_amount":"996239"},"PEN":{"code":"PEN","title":"Peruvian Nuevo Sol","symbol":"PEN","native":"S\/.","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"373","max_amount":"3730234"},"PHP":{"code":"PHP","title":"Philippine Peso","symbol":"PHP","native":"₱","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"5722","max_amount":"57215038"},"PKR":{"code":"PKR","title":"Pakistani Rupee","symbol":"PKR","native":"₨","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"27745","max_amount":"277452675"},"PLN":{"code":"PLN","title":"Polish Złoty","symbol":"PLN","native":"zł","thousands_sep":" ","decimal_sep":",","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"387","max_amount":"3867121"},"PYG":{"code":"PYG","title":"Paraguayan Guaraní","symbol":"PYG","native":"₲","thousands_sep":".","decimal_sep":",","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":0,"min_amount":"7539","max_amount":"75393050"},"QAR":{"code":"QAR","title":"Qatari Riyal","symbol":"QAR","native":"ر.ق.‏","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"363","max_amount":"3633909"},"RON":{"code":"RON","title":"Romanian Leu","symbol":"RON","native":"RON","thousands_sep":".","decimal_sep":",","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"451","max_amount":"4512204"},"RSD":{"code":"RSD","title":"Serbian Dinar","symbol":"RSD","native":"дин.","thousands_sep":".","decimal_sep":",","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"10604","max_amount":"106039599"},"RUB":{"code":"RUB","title":"Russian Ruble","symbol":"RUB","native":"₽","thousands_sep":" ","decimal_sep":",","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"9385","max_amount":"93846432"},"SAR":{"code":"SAR","title":"Saudi Riyal","symbol":"SAR","native":"ر.س.‏","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"375","max_amount":"3752590"},"SEK":{"code":"SEK","title":"Swedish Krona","symbol":"SEK","native":"kr","thousands_sep":".","decimal_sep":",","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"1044","max_amount":"10441230"},"SGD":{"code":"SGD","title":"Singapore Dollar","symbol":"SGD","native":"$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"132","max_amount":"1318038"},"SYP":{"code":"SYP","title":"Syrian pound","symbol":"SYP","native":"ل.س.‏","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"251253","max_amount":"2512530194"},"THB":{"code":"THB","title":"Thai Baht","symbol":"฿","native":"฿","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"3463","max_amount":"34632038"},"TJS":{"code":"TJS","title":"Tajikistani Somoni","symbol":"TJS","native":"TJS","thousands_sep":" ","decimal_sep":";","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"1061","max_amount":"10609941"},"TRY":{"code":"TRY","title":"Turkish Lira","symbol":"TRY","native":"TL","thousands_sep":".","decimal_sep":",","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"3370","max_amount":"33695150"},"TTD":{"code":"TTD","title":"Trinidad and Tobago Dollar","symbol":"TTD","native":"$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"677","max_amount":"6767251"},"TWD":{"code":"TWD","title":"New Taiwan Dollar","symbol":"NT$","native":"NT$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"3219","max_amount":"32191504"},"TZS":{"code":"TZS","title":"Tanzanian Shilling","symbol":"TZS","native":"TSh","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"269983","max_amount":"2699832359"},"UAH":{"code":"UAH","title":"Ukrainian Hryvnia","symbol":"UAH","native":"₴","thousands_sep":" ","decimal_sep":",","symbol_left":false,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"4107","max_amount":"41070998"},"UGX":{"code":"UGX","title":"Ugandan Shilling","symbol":"UGX","native":"USh","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":0,"min_amount":"3709","max_amount":"37089393"},"USD":{"code":"USD","title":"United States Dollar","symbol":"$","native":"$","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":false,"drop_zeros":false,"exp":2,"min_amount":"100","max_amount":1000000},"UYU":{"code":"UYU","title":"Uruguayan Peso","symbol":"UYU","native":"$","thousands_sep":".","decimal_sep":",","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"4013","max_amount":"40134113"},"UZS":{"code":"UZS","title":"Uzbekistani Som","symbol":"UZS","native":"UZS","thousands_sep":" ","decimal_sep":",","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"1260206","max_amount":"12602056998"},"VEF":{"code":"VEF","title":"Venezuelan bolívar","symbol":"VEF","native":"Bs.F.","thousands_sep":".","decimal_sep":",","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"362255253","max_amount":"999999999999"},"VND":{"code":"VND","title":"Vietnamese Đồng","symbol":"₫","native":"₫","thousands_sep":".","decimal_sep":",","symbol_left":false,"space_between":true,"drop_zeros":false,"exp":0,"min_amount":"25060","max_amount":"250600000"},"YER":{"code":"YER","title":"Yemeni Rial","symbol":"YER","native":"ر.ي.‏","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"25040","max_amount":"250403591"},"ZAR":{"code":"ZAR","title":"South African Rand","symbol":"ZAR","native":"R","thousands_sep":",","decimal_sep":".","symbol_left":true,"space_between":true,"drop_zeros":false,"exp":2,"min_amount":"1787","max_amount":"17867504"}}
package/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- export { formatPrice } from "./currencies.js";
2
1
  export type ChatType = "private" | "group" | "supergroup" | "channel";
3
2
  export type ChatAction = "typing" | "upload_photo" | "record_video" | "upload_video" | "record_audio" | "upload_audio" | "upload_document" | "find_location" | "record_video_note" | "upload_video_note";
4
3
  export type ChatMemberStatus = "creator" | "administrator" | "member" | "restricted" | "left" | "kicked";
@@ -12,7 +11,7 @@ export interface SetWebHookOptions {
12
11
  max_connections?: number;
13
12
  allowed_updates?: AllowedUpdates[];
14
13
  }
15
- interface SendBasicOptions {
14
+ export interface SendBasicOptions {
16
15
  chat_id: number | string;
17
16
  business_connection_id?: string;
18
17
  message_thread_id?: number;
@@ -26,19 +25,48 @@ export interface SendMessageOptions extends SendBasicOptions {
26
25
  disable_web_page_preview?: boolean;
27
26
  entities?: MessageEntity[];
28
27
  }
29
- interface SendAnimationOptions extends SendBasicOptions {
28
+ export interface SendAnimationOptions extends SendBasicOptions {
30
29
  animation: string;
31
30
  parse_mode?: ParseMode;
32
31
  caption?: string;
33
32
  }
34
- interface SendDocumentOptions extends SendBasicOptions {
33
+ export interface SendDocumentOptions extends SendBasicOptions {
35
34
  document: string;
36
35
  parse_mode?: ParseMode;
37
36
  caption?: string;
38
37
  }
39
- interface SendMediaGroupOptions extends SendBasicOptions {
38
+ export interface SendMediaGroupOptions extends SendBasicOptions {
40
39
  media: Array<InputMediaAudio | InputMediaDocument | InputMediaPhoto | InputMediaVideo>;
41
40
  }
41
+ export interface SendInvoiceOptions extends SendBasicOptions {
42
+ provider_data?: string;
43
+ photo_url?: string;
44
+ photo_size?: number;
45
+ photo_width?: number;
46
+ photo_height?: number;
47
+ need_name?: boolean;
48
+ need_phone_number?: boolean;
49
+ need_email?: boolean;
50
+ need_shipping_address?: boolean;
51
+ is_flexible?: boolean;
52
+ }
53
+ export interface RestrictChatMemberOptions {
54
+ until_date?: number;
55
+ can_send_messages?: boolean;
56
+ can_send_media_messages?: boolean;
57
+ can_send_other_messages?: boolean;
58
+ can_add_web_page_previews?: boolean;
59
+ }
60
+ export interface PromoteChatMemberOptions {
61
+ can_change_info?: boolean;
62
+ can_post_messages?: boolean;
63
+ can_edit_messages?: boolean;
64
+ can_delete_messages?: boolean;
65
+ can_invite_users?: boolean;
66
+ can_restrict_members?: boolean;
67
+ can_pin_messages?: boolean;
68
+ can_promote_members?: boolean;
69
+ }
42
70
  export interface AnswerCallbackQueryOptions {
43
71
  callback_query_id: string;
44
72
  text?: string;
@@ -46,33 +74,55 @@ export interface AnswerCallbackQueryOptions {
46
74
  url?: string;
47
75
  cache_time?: number;
48
76
  }
49
- interface SetMyCommandsOptions {
77
+ export interface SetMyCommandsOptions {
50
78
  commands: BotCommand[];
51
79
  scope?: BotCommandScope;
52
80
  language_code?: string;
53
81
  }
54
- interface GetMyCommandsOptions {
82
+ export interface GetMyCommandsOptions {
55
83
  scope?: BotCommandScope;
56
84
  language_code?: string;
57
85
  }
58
- interface DeleteMyCommandsOptions {
86
+ export interface DeleteMyCommandsOptions {
59
87
  }
60
- interface EditMessageTextOptions extends EditMessageReplyMarkupOptions {
88
+ export interface EditMessageTextOptions extends EditMessageReplyMarkupOptions {
61
89
  parse_mode?: ParseMode;
62
90
  disable_web_page_preview?: boolean;
63
91
  text: string;
64
92
  }
65
- interface EditMessageReplyMarkupOptions {
93
+ export interface EditMessageCaptionOptions extends EditMessageReplyMarkupOptions {
94
+ reply_markup?: InlineKeyboardMarkup;
95
+ }
96
+ export interface EditMessageReplyMarkupOptions {
66
97
  chat_id?: number | string;
67
98
  message_id?: number | string;
68
99
  inline_message_id?: string;
69
100
  }
70
- interface PassportFile {
101
+ export interface SetGameScoreOptions {
102
+ force?: boolean;
103
+ disable_edit_message?: boolean;
104
+ chat_id?: number;
105
+ message_id?: number;
106
+ inline_message_id?: string;
107
+ }
108
+ export interface GetGameHighScoresOptions {
109
+ chat_id?: number;
110
+ message_id?: number;
111
+ inline_message_id?: string;
112
+ }
113
+ export interface AnswerShippingQueryOptions {
114
+ shipping_options?: ShippingOption[];
115
+ error_message?: string;
116
+ }
117
+ export interface AnswerPreCheckoutQueryOptions {
118
+ error_message?: string;
119
+ }
120
+ export interface PassportFile {
71
121
  file_id: string;
72
122
  file_size: number;
73
123
  file_date: number;
74
124
  }
75
- interface EncryptedPassportElement {
125
+ export interface EncryptedPassportElement {
76
126
  type: string;
77
127
  data?: string;
78
128
  phone_number?: string;
@@ -84,12 +134,12 @@ interface EncryptedPassportElement {
84
134
  translation?: PassportFile[];
85
135
  hash: string;
86
136
  }
87
- interface EncryptedCredentials {
137
+ export interface EncryptedCredentials {
88
138
  data: string;
89
139
  hash: string;
90
140
  secret: string;
91
141
  }
92
- interface PassportData {
142
+ export interface PassportData {
93
143
  data: EncryptedPassportElement[];
94
144
  credentials: EncryptedCredentials;
95
145
  }
@@ -156,12 +206,12 @@ export interface Chat {
156
206
  can_set_sticker_set?: boolean;
157
207
  sticker_set_name?: string;
158
208
  }
159
- interface ForumTopicCreated {
209
+ export interface ForumTopicCreated {
160
210
  name: string;
161
211
  icon_color: number;
162
212
  icon_custom_emoji_id?: string;
163
213
  }
164
- interface ForumTopicEdited {
214
+ export interface ForumTopicEdited {
165
215
  name?: string;
166
216
  icon_custom_emoji_id?: string;
167
217
  }
@@ -321,7 +371,7 @@ export interface MessageEntity {
321
371
  url?: string;
322
372
  user?: User;
323
373
  }
324
- interface FileBase {
374
+ export interface FileBase {
325
375
  file_id: string;
326
376
  file_size?: number;
327
377
  }
@@ -383,7 +433,7 @@ export interface Voice extends FileBase {
383
433
  duration: number;
384
434
  mime_type?: string;
385
435
  }
386
- interface InputMediaBase {
436
+ export interface InputMediaBase {
387
437
  media: string;
388
438
  caption?: string;
389
439
  parse_mode?: ParseMode;
@@ -465,18 +515,18 @@ export interface UserProfilePhotos {
465
515
  export interface File extends FileBase {
466
516
  file_path?: string;
467
517
  }
468
- interface ReplyKeyboardMarkup {
518
+ export interface ReplyKeyboardMarkup {
469
519
  keyboard: KeyboardButton[][];
470
520
  resize_keyboard?: boolean;
471
521
  one_time_keyboard?: boolean;
472
522
  selective?: boolean;
473
523
  }
474
- interface KeyboardButton {
524
+ export interface KeyboardButton {
475
525
  text: string;
476
526
  request_contact?: boolean;
477
527
  request_location?: boolean;
478
528
  }
479
- interface ReplyKeyboardRemove {
529
+ export interface ReplyKeyboardRemove {
480
530
  remove_keyboard: boolean;
481
531
  selective?: boolean;
482
532
  }
@@ -493,7 +543,7 @@ export interface InlineKeyboardButton {
493
543
  callback_game?: CallbackGame;
494
544
  pay?: boolean;
495
545
  }
496
- interface LoginUrl {
546
+ export interface LoginUrl {
497
547
  url: string;
498
548
  forward_text?: string;
499
549
  bot_username?: string;
@@ -508,17 +558,17 @@ export interface CallbackQuery {
508
558
  data?: string;
509
559
  game_short_name?: string;
510
560
  }
511
- interface ForceReply {
561
+ export interface ForceReply {
512
562
  force_reply: boolean;
513
563
  selective?: boolean;
514
564
  }
515
- interface ChatPhoto {
565
+ export interface ChatPhoto {
516
566
  small_file_id: string;
517
567
  small_file_unique_id: string;
518
568
  big_file_id: string;
519
569
  big_file_unique_id: string;
520
570
  }
521
- interface ChatMember {
571
+ export interface ChatMember {
522
572
  user: User;
523
573
  status: ChatMemberStatus;
524
574
  until_date?: number;
@@ -538,7 +588,7 @@ interface ChatMember {
538
588
  can_send_other_messages?: boolean;
539
589
  can_add_web_page_previews?: boolean;
540
590
  }
541
- interface ChatPermissions {
591
+ export interface ChatPermissions {
542
592
  can_send_messages?: boolean;
543
593
  can_send_media_messages?: boolean;
544
594
  can_send_polls?: boolean;
@@ -560,26 +610,237 @@ export interface Sticker {
560
610
  mask_position?: MaskPosition;
561
611
  file_size?: number;
562
612
  }
563
- interface MaskPosition {
613
+ export interface StickerSet {
614
+ name: string;
615
+ title: string;
616
+ contains_masks: boolean;
617
+ stickers: Sticker[];
618
+ }
619
+ export interface MaskPosition {
564
620
  point: string;
565
621
  x_shift: number;
566
622
  y_shift: number;
567
623
  scale: number;
568
624
  }
569
- interface InlineQuery {
625
+ export interface InlineQuery {
570
626
  id: string;
571
627
  from: User;
572
628
  location?: Location;
573
629
  query: string;
574
630
  offset: string;
575
631
  }
576
- interface ChosenInlineResult {
632
+ export interface InlineQueryResultBase {
633
+ id: string;
634
+ reply_markup?: InlineKeyboardMarkup;
635
+ }
636
+ export interface InlineQueryResultArticle extends InlineQueryResultBase {
637
+ type: "article";
638
+ title: string;
639
+ input_message_content: InputMessageContent;
640
+ url?: string;
641
+ hide_url?: boolean;
642
+ description?: string;
643
+ thumb_url?: string;
644
+ thumb_width?: number;
645
+ thumb_height?: number;
646
+ }
647
+ export interface InlineQueryResultPhoto extends InlineQueryResultBase {
648
+ type: "photo";
649
+ photo_url: string;
650
+ thumb_url: string;
651
+ photo_width?: number;
652
+ photo_height?: number;
653
+ title?: string;
654
+ description?: string;
655
+ caption?: string;
656
+ input_message_content?: InputMessageContent;
657
+ }
658
+ export interface InlineQueryResultGif extends InlineQueryResultBase {
659
+ type: "gif";
660
+ gif_url: string;
661
+ gif_width?: number;
662
+ gif_height?: number;
663
+ gif_duration?: number;
664
+ thumb_url?: string;
665
+ title?: string;
666
+ caption?: string;
667
+ input_message_content?: InputMessageContent;
668
+ }
669
+ export interface InlineQueryResultMpeg4Gif extends InlineQueryResultBase {
670
+ type: "mpeg4_gif";
671
+ mpeg4_url: string;
672
+ mpeg4_width?: number;
673
+ mpeg4_height?: number;
674
+ mpeg4_duration?: number;
675
+ thumb_url?: string;
676
+ title?: string;
677
+ caption?: string;
678
+ input_message_content?: InputMessageContent;
679
+ }
680
+ export interface InlineQueryResultVideo extends InlineQueryResultBase {
681
+ type: "video";
682
+ video_url: string;
683
+ mime_type: string;
684
+ thumb_url: string;
685
+ title: string;
686
+ caption?: string;
687
+ video_width?: number;
688
+ video_height?: number;
689
+ video_duration?: number;
690
+ description?: string;
691
+ input_message_content?: InputMessageContent;
692
+ }
693
+ export interface InlineQueryResultAudio extends InlineQueryResultBase {
694
+ type: "audio";
695
+ audio_url: string;
696
+ title: string;
697
+ caption?: string;
698
+ performer?: string;
699
+ audio_duration?: number;
700
+ input_message_content?: InputMessageContent;
701
+ }
702
+ export interface InlineQueryResultVoice extends InlineQueryResultBase {
703
+ type: "voice";
704
+ voice_url: string;
705
+ title: string;
706
+ caption?: string;
707
+ voice_duration?: number;
708
+ input_message_content?: InputMessageContent;
709
+ }
710
+ export interface InlineQueryResultDocument extends InlineQueryResultBase {
711
+ type: "document";
712
+ title: string;
713
+ caption?: string;
714
+ document_url: string;
715
+ mime_type: string;
716
+ description?: string;
717
+ input_message_content?: InputMessageContent;
718
+ thumb_url?: string;
719
+ thumb_width?: number;
720
+ thumb_height?: number;
721
+ }
722
+ export interface InlineQueryResultLocationBase extends InlineQueryResultBase {
723
+ latitude: number;
724
+ longitude: number;
725
+ title: string;
726
+ input_message_content?: InputMessageContent;
727
+ thumb_url?: string;
728
+ thumb_width?: number;
729
+ thumb_height?: number;
730
+ }
731
+ export interface InlineQueryResultLocation extends InlineQueryResultLocationBase {
732
+ type: "location";
733
+ }
734
+ export interface InlineQueryResultVenue extends InlineQueryResultLocationBase {
735
+ type: "venue";
736
+ address: string;
737
+ foursquare_id?: string;
738
+ }
739
+ export interface InlineQueryResultContact extends InlineQueryResultBase {
740
+ type: "contact";
741
+ phone_number: string;
742
+ first_name: string;
743
+ last_name?: string;
744
+ input_message_content?: InputMessageContent;
745
+ thumb_url?: string;
746
+ thumb_width?: number;
747
+ thumb_height?: number;
748
+ }
749
+ export interface InlineQueryResultGame extends InlineQueryResultBase {
750
+ type: "game";
751
+ game_short_name: string;
752
+ }
753
+ export interface InlineQueryResultCachedPhoto extends InlineQueryResultBase {
754
+ type: "photo";
755
+ photo_file_id: string;
756
+ title?: string;
757
+ description?: string;
758
+ caption?: string;
759
+ input_message_content?: InputMessageContent;
760
+ }
761
+ export interface InlineQueryResultCachedGif extends InlineQueryResultBase {
762
+ type: "gif";
763
+ gif_file_id: string;
764
+ title?: string;
765
+ caption?: string;
766
+ input_message_content?: InputMessageContent;
767
+ }
768
+ export interface InlineQueryResultCachedMpeg4Gif extends InlineQueryResultBase {
769
+ type: "mpeg4_gif";
770
+ mpeg4_file_id: string;
771
+ title?: string;
772
+ caption?: string;
773
+ input_message_content?: InputMessageContent;
774
+ }
775
+ export interface InlineQueryResultCachedSticker extends InlineQueryResultBase {
776
+ type: "sticker";
777
+ sticker_file_id: string;
778
+ input_message_content?: InputMessageContent;
779
+ }
780
+ export interface InlineQueryResultCachedDocument extends InlineQueryResultBase {
781
+ type: "document";
782
+ title: string;
783
+ document_file_id: string;
784
+ description?: string;
785
+ caption?: string;
786
+ input_message_content?: InputMessageContent;
787
+ }
788
+ export interface InlineQueryResultCachedVideo extends InlineQueryResultBase {
789
+ type: "video";
790
+ video_file_id: string;
791
+ title: string;
792
+ description?: string;
793
+ caption?: string;
794
+ input_message_content?: InputMessageContent;
795
+ }
796
+ export interface InlineQueryResultCachedVoice extends InlineQueryResultBase {
797
+ type: "voice";
798
+ voice_file_id: string;
799
+ title: string;
800
+ caption?: string;
801
+ input_message_content?: InputMessageContent;
802
+ }
803
+ export interface InlineQueryResultCachedAudio extends InlineQueryResultBase {
804
+ type: "audio";
805
+ audio_file_id: string;
806
+ caption?: string;
807
+ input_message_content?: InputMessageContent;
808
+ }
809
+ type InputMessageContent = object;
810
+ export interface InputTextMessageContent extends InputMessageContent {
811
+ message_text: string;
812
+ parse_mode?: ParseMode;
813
+ disable_web_page_preview?: boolean;
814
+ }
815
+ export interface InputLocationMessageContent extends InputMessageContent {
816
+ latitude: number;
817
+ longitude: number;
818
+ }
819
+ export interface InputVenueMessageContent extends InputLocationMessageContent {
820
+ title: string;
821
+ address: string;
822
+ foursquare_id?: string;
823
+ }
824
+ export interface InputContactMessageContent extends InputMessageContent {
825
+ phone_number: string;
826
+ first_name: string;
827
+ last_name?: string;
828
+ }
829
+ export interface ChosenInlineResult {
577
830
  result_id: string;
578
831
  from: User;
579
832
  location?: Location;
580
833
  inline_message_id?: string;
581
834
  query: string;
582
835
  }
836
+ export interface ResponseParameters {
837
+ migrate_to_chat_id?: number;
838
+ retry_after?: number;
839
+ }
840
+ export interface LabeledPrice {
841
+ label: string;
842
+ amount: number;
843
+ }
583
844
  export interface Invoice {
584
845
  title: string;
585
846
  description: string;
@@ -587,7 +848,7 @@ export interface Invoice {
587
848
  currency: string;
588
849
  total_amount: number;
589
850
  }
590
- interface ShippingAddress {
851
+ export interface ShippingAddress {
591
852
  country_code: string;
592
853
  state: string;
593
854
  city: string;
@@ -595,16 +856,21 @@ interface ShippingAddress {
595
856
  street_line2: string;
596
857
  post_code: string;
597
858
  }
598
- interface OrderInfo {
859
+ export interface OrderInfo {
599
860
  name?: string;
600
861
  phone_number?: string;
601
862
  email?: string;
602
863
  shipping_address?: ShippingAddress;
603
864
  }
604
- interface MessageAutoDeleteTimerChanged {
865
+ export interface MessageAutoDeleteTimerChanged {
605
866
  message_auto_delete_time: number;
606
867
  }
607
- interface SuccessfulPayment {
868
+ export interface ShippingOption {
869
+ id: string;
870
+ title: string;
871
+ prices: LabeledPrice[];
872
+ }
873
+ export interface SuccessfulPayment {
608
874
  currency: string;
609
875
  total_amount: number;
610
876
  invoice_payload: string;
@@ -613,13 +879,13 @@ interface SuccessfulPayment {
613
879
  telegram_payment_charge_id: string;
614
880
  provider_payment_charge_id: string;
615
881
  }
616
- interface ShippingQuery {
882
+ export interface ShippingQuery {
617
883
  id: string;
618
884
  from: User;
619
885
  invoice_payload: string;
620
886
  shipping_address: ShippingAddress;
621
887
  }
622
- interface PreCheckoutQuery {
888
+ export interface PreCheckoutQuery {
623
889
  id: string;
624
890
  from: User;
625
891
  currency: string;
@@ -628,7 +894,7 @@ interface PreCheckoutQuery {
628
894
  shipping_option_id?: string;
629
895
  order_info?: OrderInfo;
630
896
  }
631
- interface ChatMemberUpdated {
897
+ export interface ChatMemberUpdated {
632
898
  chat: Chat;
633
899
  from: User;
634
900
  date: number;
@@ -799,3 +1065,21 @@ export declare function isTooManyRequestsError(err: unknown): boolean;
799
1065
  export declare function parseRetryAfterTime(err: unknown): number;
800
1066
  export declare function resolveNameFromMessageOrigin(messageOrigin: MessageOrigin): string;
801
1067
  export declare function resolveChatName(chat: any): string;
1068
+ export declare namespace currencies {
1069
+ interface Currency {
1070
+ code: string;
1071
+ title: string;
1072
+ symbol: string;
1073
+ native: string;
1074
+ thousands_sep: string;
1075
+ decimal_sep: string;
1076
+ symbol_left: boolean;
1077
+ space_between: boolean;
1078
+ drop_zeros: boolean;
1079
+ exp: number;
1080
+ min_amount: string | number;
1081
+ max_amount: string | number;
1082
+ }
1083
+ function formatPrice(amount: number, code: string): string;
1084
+ }
1085
+ export {};
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { formatPrice } from "./currencies.js";
1
+ import { readFileSync } from "fs";
2
2
  /**
3
3
  * Methods
4
4
  */
@@ -606,3 +606,45 @@ export function resolveChatName(chat) {
606
606
  `${chat.title}`.trim() ||
607
607
  `@${chat.username || ""}`.trim();
608
608
  }
609
+ export var currencies;
610
+ (function (currencies_1) {
611
+ const __dirname = import.meta.dirname;
612
+ let currencies = null;
613
+ function formatPrice(amount, code) {
614
+ if (!currencies) {
615
+ currencies = loadCurrencies();
616
+ }
617
+ const currency = currencies[code];
618
+ let value = "";
619
+ if (currency) {
620
+ if (currency.symbol_left && currency.native) {
621
+ value += currency.native;
622
+ if (currency.space_between) {
623
+ value += " ";
624
+ }
625
+ }
626
+ if (currency.exp > 0) {
627
+ value += amount / (10 ** currency.exp);
628
+ }
629
+ else {
630
+ value += `${amount}`;
631
+ }
632
+ if (!currency.symbol_left && currency.native) {
633
+ if (currency.space_between) {
634
+ value += " ";
635
+ }
636
+ value += currency.native;
637
+ }
638
+ }
639
+ else {
640
+ value = `${code} ${amount / 2}`;
641
+ }
642
+ return value;
643
+ }
644
+ currencies_1.formatPrice = formatPrice;
645
+ function loadCurrencies() {
646
+ return JSON.parse(readFileSync(`${__dirname}/currencies.json`, {
647
+ encoding: "utf8"
648
+ }));
649
+ }
650
+ })(currencies || (currencies = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "telegram-bot-api-nodejs",
3
- "version": "1.0.36",
3
+ "version": "1.0.39",
4
4
  "description": "Telegram Bot API client for nodejs",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -10,7 +10,8 @@
10
10
  },
11
11
  "files": [
12
12
  "index.js",
13
- "index.d.ts"
13
+ "index.d.ts",
14
+ "currencies.json"
14
15
  ],
15
16
  "scripts": {
16
17
  "prepublishOnly": "npm run build",