1 | # Help Information
|
2 |
|
3 | * [Common Pitfalls](#pitfalls)
|
4 | * [FAQs](#faqs)
|
5 |
|
6 | <a name="pitfalls"></a>
|
7 | ## Common Pitfalls
|
8 |
|
9 | <a name="reply-to-message"></a>
|
10 | ### Failing to receive reply with `ReplyToMessage`
|
11 |
|
12 | The user has to **manually reply** to your message, by tapping on the bot's message and select *Reply*.
|
13 |
|
14 | Sources:
|
15 |
|
16 | * Issue [#113](https://github.com/yagop/node-telegram-bot-api/issues/113)
|
17 |
|
18 | <a name="faqs"></a>
|
19 | ## Frequently Asked Questions
|
20 |
|
21 | > Check out [all questions ever asked][questions] on our Github Issues.
|
22 |
|
23 | 1. [How do I send GIFs?](#gifs)
|
24 | 1. [Why and When do I need a certificate when using WebHooks?](#webhook-cert)
|
25 | 1. [How do I know when a user leaves a chat?](#leave-chat)
|
26 | 1. [What does this error mean?](#error-meanings)
|
27 | 1. [How do I know the selected option in reply keyboard?](#reply-keyboard)
|
28 | 1. [How do I send multiple message in correct sequence?](#ordered-sending)
|
29 | 1. [How do I run my bot behind a proxy?](#proxy)
|
30 | 1. [Can you add feature X to the library?](#new-feature)
|
31 | 1. [Is this scalable?](#scalable)
|
32 | 1. [How do I listen for messages in a chat group?](#messages-in-chat)
|
33 | 1. [How do I know when a user blocks the bot?](#blocked-bot)
|
34 |
|
35 | <a name="gifs"></a>
|
36 | ### How do I send GIFs?
|
37 |
|
38 | You might be trying to send your animated GIFs using *TelegramBot#sendPhoto()*.
|
39 | The method mostly supports static images. As noted by the community,
|
40 | it seems you need to send them as documents, using *TelegramBot#sendDocument()*.
|
41 |
|
42 | ```js
|
43 | bot.sendDocument(chatId, 'cat.gif');
|
44 | ```
|
45 |
|
46 | Sources:
|
47 |
|
48 | * Issue [#11](https://github.com/yagop/node-telegram-bot-api/issues/11)
|
49 |
|
50 | <a name="webhook-cert"></a>
|
51 | ### Why and When do I need a certificate when using WebHooks?
|
52 |
|
53 | *Not done. PRs welcome!*
|
54 |
|
55 | Sources:
|
56 |
|
57 | * Issue [#63](https://github.com/yagop/node-telegram-bot-api/issues/63)
|
58 | * Issue [#125](https://github.com/yagop/node-telegram-bot-api/issues/125)
|
59 |
|
60 | <a name="leave-chat"></a>
|
61 | ### How do I know when a user leaves a chat?
|
62 |
|
63 | *Not done. PRs welcome!*
|
64 |
|
65 | Sources:
|
66 |
|
67 | * Issue [#248](https://github.com/yagop/node-telegram-bot-api/issues/248)
|
68 |
|
69 | <a name="error-meanings"></a>
|
70 | ### What does this error mean?
|
71 |
|
72 | * [502 Bad Gateway](https://github.com/yagop/node-telegram-bot-api/issues/377)
|
73 |
|
74 | *Not complete. PRs welcome!*
|
75 |
|
76 | Sources:
|
77 |
|
78 | * Issue [#73](https://github.com/yagop/node-telegram-bot-api/issues/73)
|
79 | * Issue [#99](https://github.com/yagop/node-telegram-bot-api/issues/99)
|
80 | * Issue [#101](https://github.com/yagop/node-telegram-bot-api/issues/101)
|
81 | * Issue [#107](https://github.com/yagop/node-telegram-bot-api/issues/107)
|
82 | * Issue [#156](https://github.com/yagop/node-telegram-bot-api/issues/156)
|
83 | * Issue [#170](https://github.com/yagop/node-telegram-bot-api/issues/170)
|
84 | * Issue [#244](https://github.com/yagop/node-telegram-bot-api/issues/244)
|
85 |
|
86 | <a name="reply-keyboard"></a>
|
87 | ### How do I know the selected option in reply keyboard?
|
88 |
|
89 | *Not done. PRs welcome!*
|
90 |
|
91 | Sources:
|
92 |
|
93 | * Issue [#108](https://github.com/yagop/node-telegram-bot-api/issues/108)
|
94 |
|
95 | <a name="ordered-sending"></a>
|
96 | ### How do I send multiple message in correct sequence?
|
97 |
|
98 | *Not done. PRs welcome!*
|
99 |
|
100 | Sources:
|
101 |
|
102 | * Issue [#240](https://github.com/yagop/node-telegram-bot-api/issues/240)
|
103 |
|
104 | <a name="proxy"></a>
|
105 | ### How do I run my bot behind a proxy?
|
106 |
|
107 | *Not done. PRs welcome!*
|
108 |
|
109 | Sources:
|
110 |
|
111 | * Issue [#122](https://github.com/yagop/node-telegram-bot-api/issues/122)
|
112 | * Issue [#253](https://github.com/yagop/node-telegram-bot-api/issues/253)
|
113 | * Issue [#766](https://github.com/yagop/node-telegram-bot-api/issues/766)
|
114 |
|
115 | <a name="new-feature"></a>
|
116 | ### Can you add feature X to the library?
|
117 |
|
118 | *Not done. PRs welcome!*
|
119 |
|
120 | Sources:
|
121 |
|
122 | * Issue [#238](https://github.com/yagop/node-telegram-bot-api/issues/238)
|
123 |
|
124 | <a name="scalable"></a>
|
125 | ### Is this scalable?
|
126 |
|
127 | *Not done. PRs welcome!*
|
128 |
|
129 | Sources:
|
130 |
|
131 | * Issue [#219](https://github.com/yagop/node-telegram-bot-api/issues/219)
|
132 |
|
133 | <a name="messages-in-chat"></a>
|
134 | ### How do I listen for messages in a chat group?
|
135 |
|
136 | *Not done. PRs welcome!*
|
137 |
|
138 | Sources:
|
139 |
|
140 | * Issue [#304](https://github.com/yagop/node-telegram-bot-api/issues/304)
|
141 |
|
142 | <a name="blocked-bot"></a>
|
143 | ### How do I know when a user blocks the bot?
|
144 |
|
145 | *Not done. PRs welcome!*
|
146 |
|
147 | Sources:
|
148 |
|
149 | * Issue [#273](https://github.com/yagop/node-telegram-bot-api/issues/273)
|
150 |
|
151 | [questions]:https://github.com/yagop/node-telegram-bot-api/issues?utf8=%E2%9C%93&q=is%3Aissue%20label%3Aquestion%20
|