- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
public void r_mesg(Message msg, string text)
{
bot.SendTextMessageAsync(msg.Chat.Id, text, replyToMessageId: msg.MessageId);
}
public void mesg_md(ChatId chatId, string text)
{
try { bot.SendTextMessageAsync(chatId, text, ParseMode.Markdown); }
catch { mesg(chatId, text); }
}
public void mesg_html(ChatId chatId, string text)
{
try { bot.SendTextMessageAsync(chatId, text, ParseMode.Html); }
catch { mesg(chatId, text); }
}
public void r_mesg_md(Message msg, string text)
{
try { bot.SendTextMessageAsync(msg.Chat.Id, text, ParseMode.Markdown, replyToMessageId: msg.MessageId); }
catch { r_mesg(msg, text); }
}
public void r_mesg_html(Message msg, string text)
{
try { bot.SendTextMessageAsync(msg.Chat.Id, text, ParseMode.Html, replyToMessageId: msg.MessageId); }
catch { r_mesg(msg, text); }
}
public void pic(ChatId chatId, string file)
{
bot.SendPhotoAsync(chatId, file);
}
public void r_pic(Message msg, string file)
{
bot.SendPhotoAsync(msg.Chat.Id, file, replyToMessageId: msg.MessageId);
}
public void pic_t(ChatId chatId, string file, string text)
{
bot.SendPhotoAsync(chatId, file, caption: text);
}
public void pic_t_md(ChatId chatId, string file, string text)
{
try { bot.SendPhotoAsync(chatId, file, caption: text, parseMode: ParseMode.Markdown); }
catch { pic_t(chatId, file, text); }
}
public void pic_t_html(ChatId chatId, string file, string text)
{
try { bot.SendPhotoAsync(chatId, file, caption: text, parseMode: ParseMode.Html); }
catch { pic_t(chatId, file, text); }
}
public void r_pic_t(Message msg, string file, string text)
{
bot.SendPhotoAsync(msg.Chat.Id, file,
caption: text, replyToMessageId: msg.MessageId);
}
public void r_pic_t_md(Message msg, string file, string text)
{
try {
bot.SendPhotoAsync(msg.Chat.Id, file,
caption: text, parseMode: ParseMode.Markdown,
replyToMessageId: msg.MessageId);
}
catch { r_pic_t(msg, file, text); }
}
public void r_pic_t_html(Message msg, string file, string text)
{
try {
bot.SendPhotoAsync(msg.Chat.Id, file,
caption: text, parseMode: ParseMode.Html,
replyToMessageId: msg.MessageId);
}
catch { r_pic_t(msg, file, text); }
}
Jint и скриптовые команды для бота. Ну не удержался и скинул эту хуету
UND85D 12.10.2018 17:40 # 0
OBEH 12.10.2018 22:05 # +1
guest8 12.10.2018 22:32 # −999