Skip to content

Commit

Permalink
DOOOEOOOEOEOONE
Browse files Browse the repository at this point in the history
  • Loading branch information
mmshooreshi committed Apr 6, 2022
1 parent 2b1884d commit 7b1d9ef
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,14 @@ def isTextMethod(message,bot)
if message.text
# $condom_protection=true
if $isMD==1 && !($condom_protection==true)
bot.api.send_message(chat_id: message.chat.id, reply_to_message_id: message.message_id, text: "MARKDOWN1 #{$condom_protection} #{$reply_text}" ,parse_mode: "MarkdownV2", protect_content: true )
bot.api.send_message(chat_id: message.chat.id, reply_to_message_id: message.message_id, text: "#{$reply_text}" ,parse_mode: "MarkdownV2", protect_content: true )
$isMD=0
else
if $condom_protection == true
bot.api.send_message(chat_id: message.chat.id, reply_to_message_id: message.message_id, text: "NO MARKDOWN #{$condom_protection} #{$reply_text}",protect_content: $condom_protection )
bot.api.send_message(chat_id: message.chat.id, reply_to_message_id: message.message_id, text: "#{$reply_text}",protect_content: $condom_protection )
else
bot.api.send_message(chat_id: message.chat.id, reply_to_message_id: message.message_id, text: "MARKDOWN2 #{$condom_protection} #{$reply_text}" , parse_mode: "MarkdownV2" )
bot.api.send_message(chat_id: message.chat.id, reply_to_message_id: message.message_id, text: " # کلیک کن تا کپی‌شه
#{$reply_text}" , parse_mode: "MarkdownV2" )
end
end
end
Expand Down

0 comments on commit 7b1d9ef

Please sign in to comment.