Ein paar Texte angepasst

This commit is contained in:
2016-09-11 13:29:48 +02:00
parent 52426b14b7
commit 0a008d206b
3 changed files with 17 additions and 12 deletions

View File

@@ -6,7 +6,15 @@ about.command = 'about'
about.doc = '`Sendet Informationen über den Bot.`'
function about:init(config)
about.text = config.about_text .. '\n[Mikudayobot](https://github.com/Akamaru/Mikubot-V2) v'..bot.version..' von @Akamaru, basierend auf [otouto](https://github.com/topkecleon/otouto) von topkecleon.'
about.text = config.about_text..[[
*Mikubot v]]..bot.version..[[* von *Akamaru*, basierend auf [otouto](https://github.com/topkecleon/otouto) von *topkecleon*.
• [Code auf GitHub](https://github.com/Akamaru/Mikubot-V2)
• [Mikubot Homepage](https://ponywave.de/projekte/mikubot-v2/)
• [Autor Homepage](http://akamaru.de/)
• [Autor in Telegram](https://telegram.me/Akamaru)
• [Mikubot Telegram Kanal](https://telegram.me/Mikubot_Updates)]]
about.triggers = {
'^/about$',
'^/start$'

View File

@@ -39,7 +39,7 @@ function preview:inline_callback(inline_query, config, matches)
only_name = preview_url:match('^%w+://([^/]+)') -- we only need the domain
end
local message_text = '<b>'..title..'</b>'..description_in_text..'\n '..only_name
local message_text = '<b>'..title..'</b>'..description_in_text..'\n- '..only_name
local results = '[{"type":"article","id":"77","title":"'..title..'","description":"'..description..'","url":"'..preview_url..'","thumb_url":"https://anditest.perseus.uberspace.de/inlineQuerys/generic/internet.jpg","thumb_width":150,"thumb_height":150,"hide_url":true,"reply_markup":{"inline_keyboard":[[{"text":"Webseite aufrufen","url":"'..preview_url..'"}]]},"input_message_content":{"message_text":"'..message_text..'","parse_mode":"HTML","disable_web_page_preview":true}}]'
utilities.answer_inline_query(inline_query, results, 3600, true)